Example #1
0
 public static Customizer SetBuildUp(this Customizer customizer, bool shouldBuildUp = true)
 {
     if (shouldBuildUp)
     {
         customizer.ExtraData.Remove(Key);
     }
     else
     {
         customizer.ExtraData[Key] = null;
     }
     return(customizer);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SingleCustomizerLocator"/> class.
 /// </summary>
 /// <param name="instance">The single customizer instance.</param>
 public SingleCustomizerLocator(Customizer instance)
 {
     this.instance = instance;
 }
Example #3
0
 public static bool ShouldBuildUp(this Customizer customizer)
 {
     return(!customizer.ExtraData.ContainsKey(Key));
 }
Example #4
0
 internal Customizer(Customizer parent, Configuration config, Type targetType)
 {
     this.parent     = parent;
     this.config     = config;
     this.targetType = targetType;
 }