public override string GetName(IntrinsicType intrinsicType, ReflectionNameOptions options) { string name; if (this.intrinsicNames.TryGetValue(intrinsicType, out name)) { return(name); } return(base.GetName(intrinsicType, options)); }
public override string GetName(INamedMetadataDeclaration declaration, ReflectionNameOptions options) { // Suppress the "System" namespace. int lastDot = declaration.Name.LastIndexOf('.'); if (lastDot > 0 && declaration.Name.Substring(0, lastDot) == "System") { return(declaration.Name.Substring(lastDot + 1)); } return(base.GetName(declaration, options)); }
public override string GetName( IntrinsicType intrinsicType, ReflectionNameOptions options ) { string name; if ( this.intrinsicNames.TryGetValue( intrinsicType, out name ) ) return name; return base.GetName( intrinsicType, options ); }
public override string GetName( INamedMetadataDeclaration declaration, ReflectionNameOptions options ) { // Suppress the "System" namespace. int lastDot = declaration.Name.LastIndexOf( '.' ); if ( lastDot > 0 && declaration.Name.Substring( 0, lastDot ) == "System" ) return declaration.Name.Substring( lastDot + 1 ); return base.GetName( declaration, options ); }