Example #1
0
 /// <summary>
 /// Gets the method signature.
 /// </summary>
 /// <returns>The method signature.</returns>
 protected override MethodSignature GetMethodSignature()
 {
     MethodSignature signature = new MethodSignature();
     signature.LoadSignature(this, this.Module.Metadata, this.signatureBlobIdx);
     return signature;
 }
Example #2
0
        private IEnumerable<RuntimeMethod> GetMethods()
        {
            this.ProcessSignature();

            List<RuntimeMethod> methods = new List<RuntimeMethod>();
            foreach (CilRuntimeMethod method in this.genericType.Methods)
            {
                MethodSignature signature = new MethodSignature();
                signature.LoadSignature(this, method.Module.Metadata, method.Signature.Token);

                RuntimeMethod genericInstanceMethod = new CilGenericMethod(method, signature, this);
                methods.Add(genericInstanceMethod);
            }

            return methods;
        }