/// <summary> /// Create toolbox provider revision information for loaded type /// </summary> /// <param name="providerType">A standard provider type</param> public ToolboxProviderInfo(Type providerType) { myResolvedType = providerType; object[] customAttributes = providerType.Assembly.GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false); int? assemblyRevision = null; for (int i = 0; i < customAttributes.Length; i++) { assemblyRevision = new Version(((AssemblyFileVersionAttribute)customAttributes[i]).Version).Revision; } myExpectedRevisionNumber = assemblyRevision.GetValueOrDefault(0); }