public override void DrawContent() { DefinitionElement definitionList = new DefinitionElement(1); definitionList.Draw("Name", this.module.Name); definitionList.Draw("FullyQualifiedName", this.module.FullyQualifiedName); definitionList.Draw("ScopeName", this.module.ScopeName); definitionList.Draw("ModuleVersionId", this.module.ModuleVersionId.ToString()); definitionList.Draw("MetadataToken", this.module.MetadataToken.ToString()); definitionList.Draw("MDStreamVersion", this.module.MDStreamVersion.ToString()); definitionList.Draw("HashCode", this.module.GetHashCode().ToString()); definitionList.Draw("IsResource", this.module.IsResource().ToString()); }
public override void DrawContent() { DefinitionElement definitionList = new DefinitionElement(1); var assemblyName = assembly.GetName(); definitionList.Draw("FullName", assembly.FullName); if (assemblyName.Name != null) { definitionList.Draw("Name", assemblyName.Name); } if (assemblyName.CodeBase != null) { definitionList.Draw("CodeBase", assemblyName.CodeBase); } if (assemblyName.CultureInfo != null) { definitionList.Draw("CultureInfo", assemblyName.CultureInfo.DisplayName); } definitionList.Draw("Flags", assemblyName.Flags.ToString()); definitionList.Draw("HashAlgorithm", assemblyName.HashAlgorithm.ToString()); definitionList.Draw("ProcessorArchitecture", assemblyName.ProcessorArchitecture.ToString()); definitionList.Draw("Version", assemblyName.Version.ToString()); definitionList.Draw("VersionCompatibility", assemblyName.VersionCompatibility.ToString()); definitionList.Draw("Location", assembly.Location); definitionList.Draw("CodeBase", assembly.CodeBase); definitionList.Draw("ImageRuntimeVersion", assembly.ImageRuntimeVersion); if (assembly.EntryPoint != null) { definitionList.Draw("EntryPoint Name", assembly.EntryPoint.Name); } definitionList.Draw("Is GAC?", assembly.GlobalAssemblyCache.ToString()); }
public override void DrawContent() { DefinitionElement definitionList = new DefinitionElement(1); definitionList.Draw("AssemblyQualifiedName", this.type.AssemblyQualifiedName); definitionList.Draw("FullName", this.type.FullName); definitionList.Draw("Namespace", this.type.Namespace); definitionList.Draw("Attributes", this.type.Attributes.ToString()); var typeBaseType = this.type.BaseType; if (typeBaseType != null) { definitionList.Draw("BaseType", typeBaseType.Name); } definitionList.Draw("GUID", this.type.GUID.ToString()); definitionList.Draw("HasElementType", this.type.HasElementType.ToString()); definitionList.Draw("IsAbstract", this.type.IsAbstract.ToString()); definitionList.Draw("IsAnsiClass", this.type.IsAnsiClass.ToString()); definitionList.Draw("IsArray", this.type.IsArray.ToString()); definitionList.Draw("IsAutoClass", this.type.IsAutoClass.ToString()); definitionList.Draw("IsAutoLayout", this.type.IsAutoLayout.ToString()); definitionList.Draw("IsByRef", this.type.IsByRef.ToString()); definitionList.Draw("IsClass", this.type.IsClass.ToString()); definitionList.Draw("IsCOMObject", this.type.IsCOMObject.ToString()); definitionList.Draw("IsContextful", this.type.IsContextful.ToString()); definitionList.Draw("IsEnum", this.type.IsEnum.ToString()); definitionList.Draw("IsExplicitLayout", this.type.IsExplicitLayout.ToString()); definitionList.Draw("IsGenericParameter", this.type.IsGenericParameter.ToString()); definitionList.Draw("IsGenericTypeDefinition", this.type.IsGenericTypeDefinition.ToString()); definitionList.Draw("IsImport", this.type.IsImport.ToString()); definitionList.Draw("IsInterface", this.type.IsInterface.ToString()); definitionList.Draw("IsLayoutSequential", this.type.IsLayoutSequential.ToString()); definitionList.Draw("IsMarshalByRef", this.type.IsMarshalByRef.ToString()); definitionList.Draw("IsNested", this.type.IsNested.ToString()); definitionList.Draw("IsNestedAssembly", this.type.IsNestedAssembly.ToString()); definitionList.Draw("IsNestedPrivate", this.type.IsNestedPrivate.ToString()); definitionList.Draw("IsNestedPublic", this.type.IsNestedPublic.ToString()); definitionList.Draw("IsNestedPublic", this.type.IsNestedPublic.ToString()); definitionList.Draw("IsPointer", this.type.IsPointer.ToString()); definitionList.Draw("IsPrimitive", this.type.IsPrimitive.ToString()); definitionList.Draw("IsPublic", this.type.IsPublic.ToString()); definitionList.Draw("IsSealed", this.type.IsSealed.ToString()); definitionList.Draw("IsSerializable", this.type.IsSerializable.ToString()); definitionList.Draw("IsUnicodeClass", this.type.IsUnicodeClass.ToString()); definitionList.Draw("IsVisible", this.type.IsVisible.ToString()); definitionList.Draw("MemberType", this.type.MemberType.ToString()); definitionList.Draw("Module", this.type.Module.Name); definitionList.Draw("Namespace", this.type.Namespace); var typeReflectedType = this.type.ReflectedType; if (typeReflectedType != null) { definitionList.Draw("ReflectedType", typeReflectedType.Name); } }