Example #1
0
 /// <summary>
 /// Activates the attributes of a Serializable class or struct and draws lines around the field.
 /// </summary>
 /// <param name="linePosition">The position options of the decoration.</param>
 /// <param name="options">Some drawing options for the field.</param>
 public LineNestAttribute(ArrayDecoratorPosition linePosition, NestOption options)
 {
     PositionCallback = linePosition.ToString();
     OptionsCallback  = options.ToString();
 }
Example #2
0
 /// <summary>
 /// Activates the attributes of a Serializable class or struct and draws lines around the field.
 /// </summary>
 /// <param name="linePositionCallback">Callback for the position of the lines.
 /// The callback type should be ArrayDecoratorPosition.</param>
 /// <param name="options">Some drawing options for the field.</param>
 public LineNestAttribute(string linePositionCallback, NestOption options)
 {
     PositionCallback = linePositionCallback;
     OptionsCallback  = options.ToString();
 }