/// <summary>
		/// Returns the namespace 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 namespace</returns>
		public static string Namespace(ExportedType exportedType, bool isReflection) {
			var fnc = new FullNameCreator(isReflection, null);
			fnc.CreateNamespace(exportedType);
			return fnc.Result;
		}
Пример #2
0
 /// <summary>
 /// Returns the namespace 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 namespace</returns>
 public static StringBuilder NamespaceSB(ExportedType exportedType, bool isReflection, StringBuilder sb)
 {
     var fnc = new FullNameCreator(isReflection, null, sb);
     fnc.CreateNamespace(exportedType);
     return fnc.sb ?? new StringBuilder();
 }
		/// <summary>
		/// Returns the namespace 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 namespace</returns>
		public static string Namespace(TypeSig typeSig, bool isReflection) {
			var fnc = new FullNameCreator(isReflection, null);
			fnc.CreateNamespace(typeSig);
			return fnc.Result;
		}
Пример #4
0
 /// <summary>
 /// Returns the namespace 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 namespace</returns>
 public static StringBuilder NamespaceSB(TypeSig typeSig, bool isReflection, StringBuilder sb)
 {
     var fnc = new FullNameCreator(isReflection, null, sb);
     fnc.CreateNamespace(typeSig);
     return fnc.sb ?? new StringBuilder();
 }