Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Metadata
ID:csharp-best-practices/use-proper-new-guid
Language: C#
Severity: Notice
Category: Best Practices
Description
This rule will warn you that you have instantiated the Guid struct without a parameter.
For an empty Guid, using Guid.Empty is cleaner.
For a randomly-generated Guid, use Guid.NewGuid() instead.