/// <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(); }
/// <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="nestOptionsCallback">Callback for the options of the Serializable class or struct. /// The callback type should be NestOption.</param> public LineNestAttribute(ArrayDecoratorPosition linePosition, string nestOptionsCallback = null) { PositionCallback = linePosition.ToString(); OptionsCallback = nestOptionsCallback; }