Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChunkMarker"/> class.
        /// </summary>
        /// <param name="type">The type of the marker this is.</param>
        public ChunkMarker(ChunkMarkerType type)
        {
            if (type == ChunkMarkerType.Value)
            {
                throw new ArgumentException("Use the other constructor when instantiating a value marker.");
            }

            _type = type;
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChunkMarker"/> class.
 /// </summary>
 /// <param name="value">The value this marker represents.</param>
 public ChunkMarker(string value)
 {
     _type  = ChunkMarkerType.Value;
     _value = value;
 }