Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ITypeDescriptor.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 using System.Collections.Generic;
5 using System.ComponentModel;
6 
7 namespace SiliconStudio.Core.Reflection
8 {
9  /// <summary>
10  /// Provides access members of a type.
11  /// </summary>
12  public interface ITypeDescriptor
13  {
14  void Initialize();
15 
17 
18  /// <summary>
19  /// Gets the type described by this instance.
20  /// </summary>
21  /// <value>The type.</value>
22  Type Type { get; }
23 
24  /// <summary>
25  /// Gets the members of this type.
26  /// </summary>
27  /// <value>The members.</value>
29 
30  /// <summary>
31  /// Gets the member count.
32  /// </summary>
33  /// <value>The member count.</value>
34  int Count { get; }
35 
36  /// <summary>
37  /// Gets the category of this descriptor.
38  /// </summary>
39  /// <value>The category.</value>
40  DescriptorCategory Category { get; }
41 
42  /// <summary>
43  /// Gets a value indicating whether this instance has members.
44  /// </summary>
45  /// <value><c>true</c> if this instance has members; otherwise, <c>false</c>.</value>
46  bool HasMembers { get; }
47 
48  /// <summary>
49  /// Gets the <see cref="IMemberDescriptor"/> with the specified name.
50  /// </summary>
51  /// <param name="name">The name.</param>
52  /// <returns>The member.</returns>
53  IMemberDescriptor this[string name] { get; }
54 
55  /// <summary>
56  /// Gets a value indicating whether this instance is a compiler generated type.
57  /// </summary>
58  /// <value><c>true</c> if this instance is a compiler generated type; otherwise, <c>false</c>.</value>
59  bool IsCompilerGenerated { get; }
60 
61  /// <summary>
62  /// Gets the style.
63  /// </summary>
64  /// <value>The style.</value>
65  DataStyle Style { get; }
66 
67  /// <summary>
68  /// Determines whether this instance contains a member with the specified member name.
69  /// </summary>
70  /// <param name="memberName">Name of the member.</param>
71  /// <returns><c>true</c> if this instance contains a member with the specified member name; otherwise, <c>false</c>.</returns>
72  bool Contains(string memberName);
73  }
74 }
SharpDX.DirectWrite.Factory Factory
DescriptorCategory
A category used by ITypeDescriptor.
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