コード例 #1
0
 public void Set(string fieldName, object newValue)
 {
     if (LookupFieldName.TryGetValue(fieldName, out int idx))
     {
         Set(idx, newValue);
     }
 }
コード例 #2
0
 public T Get <T>(string fieldName, T defaultValue)
 {
     return(ValueArray == null ? defaultValue :
            LookupFieldName.TryGetValue(fieldName, out int idx) ?
            (T)ValueArray[idx] : defaultValue);
 }
コード例 #3
0
 public object Get(string fieldName, object defaultValue)
 {
     return(ValueArray == null ? defaultValue :
            LookupFieldName.TryGetValue(fieldName, out int idx) ?
            ValueArray[idx] : defaultValue);
 }