예제 #1
0
        public TypeSignature(Type type)
            : base((type.DeclaringType == null)? null : new TypeSignature(type.DeclaringType), type.Name)
        {
            Namespace = type.Namespace;

            if(type.GenericTypeArguments.Any())
                GenericTypeArguments = new TypeSignatureCollection(type.GenericTypeArguments);
        }
예제 #2
0
        public TypeSignature(TypeReference type)
            : base((type.DeclaringType == null)? null : new TypeSignature(type.DeclaringType), type.Name)
        {
            Namespace = type.Namespace;

            var typeGen = type as GenericInstanceType;
            if (typeGen != null)
                GenericTypeArguments = new TypeSignatureCollection(typeGen.GenericArguments);
        }