Пример #1
0
 public object this[KeySegmentInfo keySegment] {
     get {
         return(this.Key.Segments.Any(s => s == keySegment)
             ? keySegment.Field.Convert(this.KeyBuffer, keySegment.Position, keySegment.Length, keySegment.Field.Parameter)
             : null);
     }
     internal set {
         keySegment.Field.ConvertBack(value, this.KeyBuffer, keySegment.Position, keySegment.Length, keySegment.Field.Parameter);
     }
 }
Пример #2
0
 public object this[KeySegmentInfo keySegment]
 {
     get {
         return this.Key.Segments.Any(s => s == keySegment)
             ? keySegment.Field.Convert(this.KeyBuffer, keySegment.Position, keySegment.Length, keySegment.Field.Parameter)
             : null;
     }
     internal set {
         keySegment.Field.ConvertBack(value, this.KeyBuffer, keySegment.Position, keySegment.Length, keySegment.Field.Parameter);
     }
 }