예제 #1
0
 public override void Clear(IMessage message)
 {
     MapFieldAccessor.smethod_0((IDictionary)base.GetValue(message));
 }
예제 #2
0
 public override void SetValue(IMessage message, object value)
 {
     throw MapFieldAccessor.smethod_1(Module.smethod_37 <string>(1983005471u));
 }
예제 #3
0
        private IFieldAccessor CreateAccessor(string propertyName)
        {
            if (propertyName == null)
            {
                goto IL_06;
            }
            goto IL_E4;
            uint           arg_A7_0;
            PropertyInfo   property;
            IFieldAccessor result;

            while (true)
            {
IL_A2:
                uint num;
                switch ((num = (arg_A7_0 ^ 2720568274u)) % 12u)
                {
                case 0u:
                    arg_A7_0 = ((!this.IsMap) ? 2387454740u : 3727411354u);
                    continue;

                case 1u:
                    goto IL_FD;

                case 2u:
                    result   = new RepeatedFieldAccessor(property, this);
                    arg_A7_0 = 3190240481u;
                    continue;

                case 3u:
                    return(result);

                case 4u:
                    goto IL_101;

                case 5u:
                    result   = new SingleFieldAccessor(property, this);
                    arg_A7_0 = (num * 2866179060u ^ 1427270409u);
                    continue;

                case 6u:
                    arg_A7_0 = ((this.IsRepeated ? 2767871872u : 3251485679u) ^ num * 2633443800u);
                    continue;

                case 7u:
                    goto IL_E4;

                case 9u:
                    arg_A7_0 = (((property != null) ? 3418836970u : 3324558718u) ^ num * 1433534820u);
                    continue;

                case 10u:
                    goto IL_06;

                case 11u:
                    return(result);
                }
                break;
            }
            goto IL_12F;
IL_FD:
            return(null);

IL_101:
            throw new DescriptorValidationException(this, FieldDescriptor.smethod_0(Module.smethod_37 <string>(814437201u), new object[]
            {
                propertyName,
                this.containingType.ClrType
            }));
IL_12F:
            result = new MapFieldAccessor(property, this);
            return(result);

IL_06:
            arg_A7_0 = 2372915079u;
            goto IL_A2;
IL_E4:
            property = this.containingType.ClrType.GetProperty(propertyName);
            arg_A7_0 = 4205391919u;
            goto IL_A2;
        }