Tag Archive: validation

A PropertyHelper class for property setter validation.

A common practice is to do property-level validation in the property setter of an object like the following. [csharp title=”C#”]public String Name { get { return this.name; } set { if (value == null) { throw new System.ArgumentNullException("value"); } if…
Read more