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