Requires.NotEmpty(Guid)
See original GitHub issueThe Requires.NotEmpty(Guid)
method here was replaced with Requires.NotDefault
, which creates an inconsistency with Microsoft.VisualStudio.Validation. Should we update that repo to match? This is tangentially related to #38.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Requires.NotEmpty(Guid, String) Method
Throws an exception if the specified parameter's value is Empty. C++. Copy. public: static void NotEmpty(Guid value, System::String ^ parameterName);
Read more >Creating a not-empty GUID validation attribute and a not- ...
In this post I described a [NotEmpty] validation attribute that can be used to detect when a Guid property on a model is...
Read more >c# - Validation of Guid
Empty, which will satisfy the requirements of the Required attribute. Now that being said, it is possible to get what you want you...
Read more >I Have a Problem with Empty GUIDs! | by Hasangi Kahaduwa
GUID stands for Global Unique Identifier. Whenever an unique identifier is required this, 128-bit integer (16 bytes) could be used.
Read more >Why NotEmpty() does not check if value for Guid type is ...
Hello, I'm a bit confused. Why NotEmpty() rule does not check if Guid argument is equal to default(Guid) and return that it's not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s never going to happen. vs-validation is used in many Microsoft components and thus has a high backward compat obligation. I don’t mind copying
NotDefault<T>
from here to vs-validation, but that’s probably all I’d want to do.Let’s leave NotEmpty(Guid) alone. It’s in vs-validation and we won’t be obsoleting it there.