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); }
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); }