Sitecore 5.0 API

MainUtil.GetAssemblyName Method 

Gets the name of the assembly containing a type.

[Visual Basic]
Public Shared Function GetAssemblyName( _
   ByVal type As Type _
) As String
[C#]
public static string GetAssemblyName(
   Type type
);

Parameters

type
A type.

Return Value

The name of the assembly containg the type.

Example

  string assemblyName = MainUtil.GetAssemblyName(Sitecore.MasterFactory.GetType()); // "Sitecore.Kernel"

See Also

MainUtil Class | Sitecore Namespace