4 using System.Collections.Generic;
5 using SiliconStudio.Core.Reflection;
7 namespace SiliconStudio.Assets.Visitors
14 private object instance;
16 private readonly Type instanceType;
20 if (instanceDescriptor == null)
throw new ArgumentNullException(
"instanceDescriptor");
22 this.instance = instance;
23 this.instanceDescriptor = instanceDescriptor;
24 this.instanceType = instanceDescriptor.Type;
29 public bool HasMembers
33 return Members != null;
45 public List<DataVisitNode> Members {
get; set; }
47 public List<DataVisitNode> Items {
get; set; }
50 public object Instance
66 return instanceDescriptor;
70 public Type InstanceType
74 return instance != null ? instance.GetType() : instanceType;
Base class for all items in a collection (array, list or dictionary)
Provides access members of a type.