Esempio n. 1
0
 /// <summary>
 ///		Initializes a new instance of the <see cref="SvcDirectiveParserState"/> class.
 /// </summary>
 /// <param name="previousState">The previous state.</param>
 protected SvcDirectiveParserState(SvcDirectiveParserState previousState)
 {
     if (previousState != null)
     {
         this.LineNumber = previousState.LineNumber;
         this.Position   = previousState.Position;
         this._directive = previousState.Directive;
     }
     else
     {
         this.LineNumber = 1;
         this.Position   = 0;
         this._directive = new ServiceHostDirective();
     }
 }
Esempio n. 2
0
		/// <summary>
		///		Initializes a new instance of the <see cref="SvcDirectiveParserState"/> class.
		/// </summary>
		/// <param name="previousState">The previous state.</param>
		protected SvcDirectiveParserState( SvcDirectiveParserState previousState )
		{
			if ( previousState != null )
			{
				this.LineNumber = previousState.LineNumber;
				this.Position = previousState.Position;
				this._directive = previousState.Directive;
			}
			else
			{
				this.LineNumber = 1;
				this.Position = 0;
				this._directive = new ServiceHostDirective();
			}
		}
Esempio n. 3
0
 public LineCountingTextReader(SvcDirectiveParserState enclosing, TextReader underlying)
 {
     GC.SuppressFinalize(this);
     this._enclosing  = enclosing;
     this._underlying = underlying;
 }
		protected ServiceHostDirectiveParsingState( SvcDirectiveParserState previous, StringBuilder buffer )
			: base( previous )
		{
			this.Buffer = buffer;
		}
 protected ServiceHostDirectiveParsingState(SvcDirectiveParserState previous, StringBuilder buffer)
     : base(previous)
 {
     this.Buffer = buffer;
 }
Esempio n. 6
0
			public LineCountingTextReader( SvcDirectiveParserState enclosing, TextReader underlying )
			{
				GC.SuppressFinalize( this );
				this._enclosing = enclosing;
				this._underlying = underlying;
			}