Beispiel #1
0
 /// <summary>
 /// The default constructor creating an empty standard layout
 /// </summary>
 public StandardLayout()
 {
     TypeCache = new Dictionary<Type, PropertyInfo[]>();
     LayoutCache = new Dictionary<string, LayoutParameter[]>();
     Config = new StandardLayoutConfig();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes this standard layout using the passed logging config
 /// </summary>
 /// <param name="layoutConfig">The layout config to initialize this standard layout with</param>
 public void Initialize(LayoutConfig layoutConfig)
 {
     Config = layoutConfig == null
         ? new StandardLayoutConfig()
         : layoutConfig is StandardLayoutConfig
             ? (StandardLayoutConfig)layoutConfig
             : new StandardLayoutConfig(layoutConfig.Config);
     LayoutCache.Clear();
 }