private void FromParsedType(ParsedType parsedType) { Namespace = parsedType.Namespace; Name = parsedType.Name; if (parsedType.Arguments != null) { foreach (var argument in parsedType.Arguments) { var typeReference = new TypeReference(); typeReference.FromParsedType(argument); Parameters.Add(typeReference); } } }
public TypeReference(string clrFullTypeName) { var parsedType = ParsedType.Parse(clrFullTypeName); FromParsedType(parsedType); }