コード例 #1
0
 public bool ResolveInstance(IndexerClassSpec var1)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (var1 == null)
     {
         return(false);
     }
     return(listenerEvent == var1.listenerEvent && writerEvent == var1.writerEvent);
 }
コード例 #2
0
 public static bool _0001(IndexerClassSpec init, IndexerClassSpec token)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (init == token)
     {
         return(true);
     }
     if (init == null || token == null)
     {
         return(false);
     }
     return(init.ResolveInstance(token));
 }
コード例 #3
0
        internal static IndexerClassSpec[] OrderInstance(RefEvent value)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            if (value == null)
            {
                throw new ArgumentNullException("videoStreamConfig");
            }
            int def;
            int token;
            int num = value._0001(out def, out token);

            if (num != 0)
            {
                Marshal.ThrowExceptionForHR(num);
            }
            if (def <= 0)
            {
                throw new NotSupportedException("This video device does not report capabilities.");
            }
            if (token > Marshal.SizeOf(typeof(TokenizerIteratorMapping)))
            {
                throw new NotSupportedException("Unable to retrieve video device capabilities. This video device requires a larger VideoStreamConfigCaps structure.");
            }
            Dictionary <uint, IndexerClassSpec> dictionary = new Dictionary <uint, IndexerClassSpec>();

            for (int i = 0; i < def; i++)
            {
                try
                {
                    IndexerClassSpec indexerClassSpec = new IndexerClassSpec(value, i);
                    uint             key = (uint)(indexerClassSpec.listenerEvent.Height | (indexerClassSpec.listenerEvent.Width << 16));
                    if (!dictionary.ContainsKey(key))
                    {
                        dictionary.Add(key, indexerClassSpec);
                    }
                    else if (indexerClassSpec.writerEvent > dictionary[key].writerEvent)
                    {
                        dictionary[key] = indexerClassSpec;
                    }
                }
                catch
                {
                }
            }
            IndexerClassSpec[] array = new IndexerClassSpec[dictionary.Count];
            dictionary.Values.CopyTo(array, 0);
            return(array);
        }
コード例 #4
0
 public static bool _0002(IndexerClassSpec spec, IndexerClassSpec cust)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     return(!_0001(spec, cust));
 }