Example #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();
     }
 }
Example #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();
			}
		}