src/T4Toolbox.TemplateAnalysis/DirectiveDescriptor.cs
/// <summary>
/// Returns a list of <see cref="DirectiveDescriptor"/> objects representing all built-in T4 directives.
/// </summary>
Returns a list of  objects representing all built-in T4 directives.
Returns a list of objects representing all built - in T4 directives .
public static IEnumerable<DirectiveDescriptor> GetBuiltInDirectives()
        {
            if (DirectiveDescriptor.builtInDirectives == null)
            {
                var knownDirectives = new Dictionary<Type, DirectiveDescriptor>();
                foreach (Type type in typeof(Directive).Assembly.GetTypes())
                {
                    if (type.IsSubclassOf(typeof(Directive)))
                    {
                        knownDirectives.Add(type, new DirectiveDescriptor(type));
                    }
                }
                DirectiveDescriptor.builtInDirectives = knownDirectives;
            }
            return DirectiveDescriptor.builtInDirectives.Values;
        }
public static IEnumerable < DirectiveDescriptor > GetBuiltInDirectives ( ) { if ( DirectiveDescriptor . builtInDirectives == null ) { var knownDirectives = new Dictionary < Type , DirectiveDescriptor > ( ) ; foreach ( Type type in typeof ( Directive ) . Assembly . GetTypes ( ) ) { if ( type . IsSubclassOf ( typeof ( Directive ) ) ) { knownDirectives . Add ( type , new DirectiveDescriptor ( type ) ) ; } } DirectiveDescriptor . builtInDirectives = knownDirectives ; } return DirectiveDescriptor . builtInDirectives . Values ; }
Returns a list of  objects representing all built-in T4 directives.
Returns a list of objects representing all built - in T4 directives .