Exemplo n.º 1
0
        void SetType(TypeDefinition type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }
            Type = type;
            GenericParameters = DocUtils.GetGenericParameters(type);

            if (DocUtils.IsDelegate(type))
            {
                Parameters     = type.GetMethod("Invoke").Parameters;
                ReturnType     = type.GetMethod("Invoke").ReturnType;
                ReturnIsReturn = true;
            }
        }