Class CsAttributeExtensions
Extensions class that provides common automation tasks rolled up under standard extension methods that support the CsAttribute model.
Inherited Members
Namespace: CodeFactory.Formatting.CSharp
Assembly: CodeFactory.Formatting.CSharp.dll
Syntax
public static class CsAttributeExtensions
  Methods
| Improve this Doc View SourceCSharpFormatAttributeDeclarationEnumerator(IReadOnlyList<CsAttribute>, NamespaceManager)
An iterator that returns fully formatted declaration syntax for a attribute in the C# language
Declaration
public static IEnumerable<string> CSharpFormatAttributeDeclarationEnumerator(this IReadOnlyList<CsAttribute> source, NamespaceManager manager = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IReadOnlyList<CsAttribute> | source | List of attributes to be processed.  | 
      
| NamespaceManager | manager | Namespace manager used to format type names.This is an optional parameter.  | 
      
Returns
| Type | Description | 
|---|---|
| IEnumerable<string> | Fully formatted syntax for the attribute.  | 
      
CSharpFormatAttributeSignature(CsAttribute, NamespaceManager)
Extension method that returns a full attribute declaration in the C# language format.
Declaration
public static string CSharpFormatAttributeSignature(this CsAttribute source, NamespaceManager manager = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CsAttribute | source | The attribute toe generate the c# signature for.  | 
      
| NamespaceManager | manager | Optional parameter that contains all the using statements from the source code, when used will replace namespaces on type definition in code.  | 
      
Returns
| Type | Description | 
|---|---|
| string | The formatted attribute signature or null if data was missing to create the attribute.  |