Adf.Core.Identity.ID.ID C# (CSharp) Method

ID() public method

Initializes a new instance of the ID with the specified value.
public ID ( object newValue ) : System
newValue object The value to use.
return System
        public ID(object newValue)
        {
            value = newValue;

            hashCode = value == null || value.ToString().Length == 0 ? 0 : value.ToString().ToUpperInvariant().GetHashCode();

            if (hashCode == 0) value = null;    // is empty
        }