public PropertyTreeNode(PropertyDefinition property)
{
if (property == null)
throw new ArgumentNullException("property");
this.property = property;
// using (LoadedAssembly.DisableAssemblyLoad())
{
this.isIndexer = property.IsIndexer();
}
if (property.GetMethod != null)
this.Children.Add(new MethodTreeNode(property.GetMethod));
if (property.SetMethod != null)
this.Children.Add(new MethodTreeNode(property.SetMethod));
if (property.HasOtherMethods)
{
foreach (var m in property.OtherMethods)
this.Children.Add(new MethodTreeNode(m));
}
}