Пример #1
0
 public static void ExpandoPromoteClass(ExpandoObject expando, object oldClass, object newClass) {
     ContractUtils.RequiresNotNull(expando, "expando");
     expando.PromoteClass((ExpandoClass)oldClass, (ExpandoClass)newClass);
 }
Пример #2
0
 public static bool ExpandoCheckVersion(ExpandoObject expando, object version) {
     ContractUtils.RequiresNotNull(expando, "expando");
     return expando.Class == version;
 }
Пример #3
0
 public static bool ExpandoDeleteValueIgnoreCase(ExpandoObject expando, object indexClass, int index) {
     ContractUtils.RequiresNotNull(expando, "expando");
     return expando.DeleteValue((ExpandoClass)indexClass, index, true);
 }
Пример #4
0
 public static void ExpandoSetValueIgnoreCase(ExpandoObject expando, object indexClass, int index, object value) {
     ContractUtils.RequiresNotNull(expando, "expando");
     expando.SetValue((ExpandoClass)indexClass, index, true, value);
 }
Пример #5
0
 public static object ExpandoGetValue(ExpandoObject expando, object indexClass, int index) {
     ContractUtils.RequiresNotNull(expando, "expando");
     return expando.GetValue((ExpandoClass)indexClass, index, false);
 }
Пример #6
0
 public MetaExpando(Expression expression, ExpandoObject value)
     : base(expression, Restrictions.Empty, value) {
 }