Craig's Utility Library  4.0 Beta
Utilities.DataTypes.AOP.Generators.ClassGenerator Class Reference

Class generator interface More...

Inheritance diagram for Utilities.DataTypes.AOP.Generators.ClassGenerator:
Utilities.DataTypes.AOP.Generators.BaseClasses.GeneratorBase Utilities.DataTypes.AOP.Interfaces.IClassGenerator

Public Member Functions

 ClassGenerator (Type declaringType, ConcurrentBag< IAspect > aspects)
 Initializes a new instance of the ClassGenerator class. More...
 
string Generate (string @namespace, string className, List< string > usings, List< Type > interfaces, List< Assembly > assembliesUsing)
 Generates the specified type. More...
 

Properties

ConcurrentBag< IAspectAspects [get]
 Gets the aspects. More...
 
Type DeclaringType [get]
 Gets or sets the type of the declaring. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Utilities.DataTypes.AOP.Generators.BaseClasses.GeneratorBase
 GeneratorBase ()
 Initializes a new instance of the GeneratorBase class. More...
 
Assembly[] GetAssemblies (Type type)
 Gets the assemblies associated with the type. More...
 
Assembly[] GetAssembliesSimple (Type type)
 Gets the assemblies associated with the type. More...
 

Detailed Description

Class generator interface

See also
Utilities.DataTypes.AOP.Interfaces.IClassGenerator

Definition at line 16 of file ClassGenerator.cs.

Constructor & Destructor Documentation

Utilities.DataTypes.AOP.Generators.ClassGenerator.ClassGenerator ( Type  declaringType,
ConcurrentBag< IAspect aspects 
)

Initializes a new instance of the ClassGenerator class.

Parameters
declaringTypeType of the declaring.
aspectsThe aspects.

Definition at line 23 of file ClassGenerator.cs.

Member Function Documentation

string Utilities.DataTypes.AOP.Generators.ClassGenerator.Generate ( string @  namespace,
string  className,
List< string >  usings,
List< Type >  interfaces,
List< Assembly >  assembliesUsing 
)

Generates the specified type.

Parameters
namespaceThe namespace.
classNameName of the class.
usingsThe usings.
interfacesThe interfaces.
assembliesUsingThe assemblies using.
Returns
The string representation of the generated class

Implements Utilities.DataTypes.AOP.Interfaces.IClassGenerator.

Definition at line 50 of file ClassGenerator.cs.

Property Documentation

ConcurrentBag<IAspect> Utilities.DataTypes.AOP.Generators.ClassGenerator.Aspects
getprotected

Gets the aspects.

The aspects.

Definition at line 33 of file ClassGenerator.cs.

Type Utilities.DataTypes.AOP.Generators.ClassGenerator.DeclaringType
getprotected

Gets or sets the type of the declaring.

The type of the declaring.

Definition at line 39 of file ClassGenerator.cs.


The documentation for this class was generated from the following file: