public override bool Equals(object obj) { SimpleTypeReference other = obj as SimpleTypeReference; if (null == other) { return(false); } return(_simpleName == other._simpleName); }
public TypeReference Parse() { SimpleTypeReference str = ParseSimpleTypeReference(); TypeReference returnValue = ParseQualifiedTypeReference(str); Token token = NextToken(); if (null != token) { switch (token.Kind) { case TokenKind.Comma: str.SetAssemblyName(ParseAssemblyName()); break; default: UnexpectedToken(TokenKind.Comma, token); break; } } return(returnValue); }