Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IMemberDescriptor.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.Reflection
6 {
7  /// <summary>
8  /// Describe a member of an object.
9  /// </summary>
10  public interface IMemberDescriptor
11  {
13 
14  /// <summary>
15  /// Gets the name.
16  /// </summary>
17  /// <value>The name.</value>
18  string Name { get; }
19 
20  /// <summary>
21  /// Gets the type.
22  /// </summary>
23  /// <value>The type.</value>
24  Type Type { get; }
25 
26  ITypeDescriptor TypeDescriptor { get; }
27 
28  /// <summary>
29  /// Gets the type that is declaring this member.
30  /// </summary>
31  /// <value>The type that is declaring this member.</value>
32  Type DeclaringType { get; }
33 
34  /// <summary>
35  /// Gets the order of this member.
36  /// Default is -1, meaning that it is using the alphabetical order
37  /// based on the name of this property.
38  /// </summary>
39  /// <value>The order.</value>
40  int? Order { get; }
41 
42  /// <summary>
43  /// Gets the mode of serialization for this member.
44  /// </summary>
45  /// <value>The mode.</value>
46  DataMemberMode Mode { get; }
47 
48  /// <summary>
49  /// Gets the value of this member for the specified instance.
50  /// </summary>
51  /// <param name="thisObject">The this object to get the value from.</param>
52  /// <returns>Value of the member.</returns>
53  object Get(object thisObject);
54 
55  /// <summary>
56  /// Sets a value of this member for the specified instance.
57  /// </summary>
58  /// <param name="thisObject">The this object.</param>
59  /// <param name="value">The value.</param>
60  void Set(object thisObject, object value);
61 
62  /// <summary>
63  /// Gets a value indicating whether this instance has set method.
64  /// </summary>
65  /// <value><c>true</c> if this instance has set method; otherwise, <c>false</c>.</value>
66  bool HasSet { get; }
67 
68  /// <summary>
69  /// Gets the default style attached to this member.
70  /// </summary>
71  /// <value>The style.</value>
72  DataStyle Style { get; }
73  }
74 }
SharpDX.DirectWrite.Factory Factory
Provides access members of a type.
A factory to create an instance of a ITypeDescriptor
DataStyle
Specifies the style used for textual serialization when an array/list or a dictionary/map must be ser...
Definition: DataStyle.cs:9