Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DataStyleAttribute.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Core
6 {
7  /// <summary>
8  /// An attribute to modify the output style of a sequence or mapping.
9  /// This attribute can be apply directly on a type or on a property/field.
10  /// </summary>
11  [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field)]
12  public class DataStyleAttribute : Attribute
13  {
14  private readonly DataStyle style;
15 
16  /// <summary>
17  /// Initializes a new instance of the <see cref="DataStyleAttribute"/> class.
18  /// </summary>
19  /// <param name="style">The style.</param>
21  {
22  this.style = style;
23  }
24 
25  /// <summary>
26  /// Gets the style.
27  /// </summary>
28  /// <value>The style.</value>
29  public DataStyle Style
30  {
31  get { return style; }
32  }
33  }
34 }
An attribute to modify the output style of a sequence or mapping. This attribute can be apply directl...
DataStyleAttribute(DataStyle style)
Initializes a new instance of the DataStyleAttribute class.
DataStyle
Specifies the style used for textual serialization when an array/list or a dictionary/map must be ser...
Definition: DataStyle.cs:9