Antlr4.Runtime.Misc.IntervalSet.SetReadonly C# (CSharp) 메소드

SetReadonly() 공개 메소드

public SetReadonly ( bool @readonly ) : void
@readonly bool
리턴 void
        public virtual void SetReadonly(bool @readonly)
        {
            if (this.@readonly && !@readonly)
            {
                throw new InvalidOperationException("can't alter readonly IntervalSet");
            }
            this.@readonly = @readonly;
        }

Usage Example

예제 #1
0
 static IntervalSet()
 {
     CompleteCharSet.SetReadonly(true);
     EmptySet.SetReadonly(true);
 }