コード例 #1
0
 public FileEntityDescriptor(
     string name,
     int position,
     EntityLength length,
     DataEntityFormat valueFormat,
     object defaultValue)
     : this(name, position, length, valueFormat, valueFormat.GetDefaultValidator(), defaultValue)
 {
     DefaultValue = defaultValue;
 }
コード例 #2
0
 public FileEntityDescriptor(
     string name,
     int position,
     EntityLength length,
     DataEntityFormat valueFormat,
     Func <object, bool> valueRangeValidator,
     object defaultValue)
     : base(name, position, length, valueFormat, valueRangeValidator)
 {
     DefaultValue = defaultValue;
 }
コード例 #3
0
 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);
     }
 }