System.__ComObject.GetCLSID C# (CSharp) Méthode

GetCLSID() private static méthode

private static GetCLSID ( Type t ) : System.Guid
t Type
Résultat System.Guid
		private static Guid GetCLSID (Type t)
		{
			if (t.IsImport)
				return t.GUID;

			// look at supertypes
			Type super = t.BaseType;
			while (super != typeof (object)) {
				if (super.IsImport)
					return super.GUID;
				super = super.BaseType;
			}
			throw new COMException ("Could not find base COM type for type " + t.ToString());
		}