public FileEntityDescriptor( string name, int position, EntityLength length, DataEntityFormat valueFormat, object defaultValue) : this(name, position, length, valueFormat, valueFormat.GetDefaultValidator(), defaultValue) { DefaultValue = defaultValue; }
public FileEntityDescriptor( string name, int position, EntityLength length, DataEntityFormat valueFormat, Func <object, bool> valueRangeValidator, object defaultValue) : base(name, position, length, valueFormat, valueRangeValidator) { DefaultValue = defaultValue; }
public override int GetHashCode() { unchecked { var hashCode = DocumentId.GetHashCode(); hashCode = (hashCode * 397) ^ (Entity != null ? Entity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EntityType != null ? EntityType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ EntityOffset.GetHashCode(); hashCode = (hashCode * 397) ^ EntityLength.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); return(hashCode); } }