Exemple #1
0
 public static bool ExpandoTryGetValueIgnoreCase(ExpandoObject expando, object indexClass, int index, string name, out object value) {
     ContractUtils.RequiresNotNull(expando, "expando");
     int result = expando.TryGetValue((ExpandoClass)indexClass, index, true, name, out value);
     if (result == ExpandoObject.AmbiguousMatchFound) {
         throw Error.AmbiguousMatchInExpandoObject();
     } else {
         return result >= 0;
     }
 }
Exemple #2
0
 public static bool ExpandoTryGetValue(ExpandoObject expando, object indexClass, int index, string name, bool ignoreCase, out object value)
 {
     return expando.TryGetValue(indexClass, index, name, ignoreCase, out value);
 }
Exemple #3
0
 public static bool ExpandoTryGetValue(ExpandoObject expando, object indexClass, int index, string name, out object value) {
     ContractUtils.RequiresNotNull(expando, "expando");
     return expando.TryGetValue((ExpandoClass)indexClass, index, false, name, out value) >= 0;
 }