Class ReportGenerators
The static members of this class generate reports about assemblies and their dependents.
Inheritance
Namespace: WizardWrx.AssemblyUtils
Assembly: WizardWrx.AssemblyUtils.dll
Syntax
public class ReportGenerators : object
Methods
| Improve this Doc View SourceGetAssemblyGuidString(Assembly)
Get the GUID string (Registry format) attached to an assembly.
Declaration
public static string GetAssemblyGuidString(Assembly pasm)
Parameters
Type | Name | Description |
---|---|---|
Assembly | pasm | Assembly from which to return the GUID string. |
Returns
Type | Description |
---|---|
System.String | If the method succeeds, the return value is the GUID attached to it and intended to be associated with its type library if the assembly is exposed to COM. |
LabelKeyAssemblyProperties(StreamWriter, Char)
Generate the label row on the pswOut
StreamWriter
that is delimited by pchrDlm
characters.
Declaration
public static void LabelKeyAssemblyProperties(StreamWriter pswOut, char pchrDlm)
Parameters
Type | Name | Description |
---|---|---|
StreamWriter | pswOut | Specify the open StreamWriter upon which to write. |
System.Char | pchrDlm | Specify the delimiter character. |
Remarks
The label template is a managed resource string, REPORT_FIELD_NAMES, which governs the field order.
ListKeyAssemblyProperties(Assembly, StreamWriter, Char)
Create a record and append it to the flat file behind a StreamWriter.
Declaration
public static void ListKeyAssemblyProperties(Assembly pasmSubject, StreamWriter pswOut, char pchrDlm)
Parameters
Type | Name | Description |
---|---|---|
Assembly | pasmSubject | Specify the assembly to be evaluated. |
StreamWriter | pswOut | Specify the open StreamWriter upon which to write. |
System.Char | pchrDlm | Specify the delimiter character. |
Remarks
The label template is a managed resource string, REPORT_FIELD_NAMES, which governs the field order.
ShowKeyAssemblyProperties(Assembly, Int32, Int32)
List selected properties of any assembly on a console.
Declaration
public static void ShowKeyAssemblyProperties(Assembly pasmSubject, int pintJ, int pintNDependents)
Parameters
Type | Name | Description |
---|---|---|
Assembly | pasmSubject | Pass in a reference to the desired assembly, which may be the assembly that exports a specified type, the executing assembly, the calling assembly, the entry assembly, or any other assembly for which you can obtain a reference. |
System.Int32 | pintJ | Pass in the array subscript, a 32 bit signed integer. |
System.Int32 | pintNDependents | Pass in the array element count, a 32 bit signed integer. |