예제 #1
0
        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);
        }
예제 #2
0
 // ...................................................................
 internal AggregateSyntaxDriver(SyntaxDriverCollection Drivers)
 {
     this._drivers = Drivers ?? throw new ArgumentNullException(nameof(Drivers));
 }