System.Runtime.Remoting.MetadataServices.SdlGenerator.GetNSAndAssembly C# (CSharp) Méthode

GetNSAndAssembly() private static méthode

private static GetNSAndAssembly ( Type type, String &ns, Assembly &assem ) : bool
type System.Type
ns String
assem System.Reflection.Assembly
Résultat bool
		private static bool GetNSAndAssembly(Type type, out String ns, out Assembly assem)
		{
			Util.Log("SdlGenerator.GetNSAndAssembly "+type);

			String xmlNamespace = null;
			String xmlElement = null;
			bool bInterop = false;
			SoapServices.GetXmlElementForInteropType(type, out xmlElement, out xmlNamespace);
			if (xmlNamespace != null)
			{
				ns = xmlNamespace;
				assem = null;
				bInterop = true;
			}
			else
			{
				// Return the namespace and assembly in which the type is defined
				ns = type.Namespace;
				assem = type.Module.Assembly;
				bInterop = false;
			}
			return bInterop;
		}