/// <summary> /// Returns the name of a <see cref="ExportedType"/> /// </summary> /// <param name="exportedType">The <c>ExportedType</c></param> /// <param name="isReflection">Set if output should be compatible with reflection</param> /// <returns>The name</returns> public static string Name(ExportedType exportedType, bool isReflection) { var fnc = new FullNameCreator(isReflection, null); fnc.CreateName(exportedType); return fnc.Result; }
/// <summary> /// Returns the name of a <see cref="ExportedType"/> /// </summary> /// <param name="exportedType">The <c>ExportedType</c></param> /// <param name="isReflection">Set if output should be compatible with reflection</param> /// <param name="sb">String builder to use or null</param> /// <returns>The name</returns> public static StringBuilder NameSB(ExportedType exportedType, bool isReflection, StringBuilder sb) { var fnc = new FullNameCreator(isReflection, null, sb); fnc.CreateName(exportedType); return fnc.sb ?? new StringBuilder(); }
/// <summary> /// Returns the name of a <see cref="TypeSig"/> /// </summary> /// <param name="typeSig">The type sig</param> /// <param name="isReflection">Set if output should be compatible with reflection</param> /// <returns>The name</returns> public static string Name(TypeSig typeSig, bool isReflection) { var fnc = new FullNameCreator(isReflection, null); fnc.CreateName(typeSig); return fnc.Result; }
/// <summary> /// Returns the name of a <see cref="TypeSig"/> /// </summary> /// <param name="typeSig">The type sig</param> /// <param name="isReflection">Set if output should be compatible with reflection</param> /// <param name="sb">String builder to use or null</param> /// <returns>The name</returns> public static StringBuilder NameSB(TypeSig typeSig, bool isReflection, StringBuilder sb) { var fnc = new FullNameCreator(isReflection, null, sb); fnc.CreateName(typeSig); return fnc.sb ?? new StringBuilder(); }