public static SyntaxDriverCollection GetSyntaxDrivers(TextBox Target) { var collection = Target.GetValue(SyntaxDriversProperty) as SyntaxDriverCollection; if (collection == null) { collection = new SyntaxDriverCollection(); Target.SetValue(SyntaxDriversProperty, collection); } return(collection); }
// ................................................................... internal AggregateSyntaxDriver(SyntaxDriverCollection Drivers) { this._drivers = Drivers ?? throw new ArgumentNullException(nameof(Drivers)); }