コード例 #1
0
 internal void MoveIterator(SystemPropertyStruct info)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (_IssuerReader != null)
     {
         TemplateIssuer templateIssuer = _IssuerReader as TemplateIssuer;
         if (templateIssuer != null)
         {
             templateIssuer.CloneIterator(readerReader, info);
             readerReader = null;
         }
         else
         {
             ((InitializerComposerWorker)_IssuerReader).LogoutIterator(info);
         }
     }
     else
     {
         if (info._0001() != (ChildRunStatus)3 && info._0001() != (ChildRunStatus)4)
         {
             throw CollectionComposer.ListTest(this, "Error writing {0} value. BSON must start with an Object or Array.".ListReader(CultureInfo.InvariantCulture, info._0001()), null);
         }
         _IssuerReader   = info;
         _PropertyReader = info;
     }
 }
コード例 #2
0
 public override void _0001(ulong positionvar1)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (positionvar1 > long.MaxValue)
     {
         throw CollectionComposer.ListTest(this, "Value is too large to fit in a signed 64 bit integer. BSON does not support unsigned values.", null);
     }
     base._0001(positionvar1);
     ConnectIterator(positionvar1, (ChildRunStatus)18);
 }
コード例 #3
0
 public override void _0001(uint start_instance)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (start_instance > int.MaxValue)
     {
         throw CollectionComposer.ListTest(this, "Value is too large to fit in a signed 32 bit integer. BSON does not support unsigned values.", null);
     }
     base._0001(start_instance);
     ConnectIterator(start_instance, (ChildRunStatus)16);
 }
コード例 #4
0
 public void PopIterator(byte[] value)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     ContextClientBridge.RunClient(value, "value");
     if (value.Length != 12)
     {
         throw CollectionComposer.ListTest(this, "An object id must be 12 bytes", null);
     }
     RateTest(WatcherComposer.Undefined, null);
     ConnectIterator(value, (ChildRunStatus)7);
 }
コード例 #5
0
        protected override void _0001(WatcherComposer instance)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            switch (instance)
            {
            case WatcherComposer.EndObject:
                m_MethodComposer.Write('}');
                break;

            case WatcherComposer.EndArray:
                m_MethodComposer.Write(']');
                break;

            case WatcherComposer.EndConstructor:
                m_MethodComposer.Write(')');
                break;

            default:
                throw CollectionComposer.ListTest(this, "Invalid JsonToken: " + instance, null);
            }
        }
コード例 #6
0
 public override void _0006(string res)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     throw CollectionComposer.ListTest(this, "Cannot write raw JSON as BSON.", null);
 }