ICSharpCode.ILSpy.TreeNodes.PropertyTreeNode.PropertyTreeNode C# (CSharp) Method

PropertyTreeNode() public method

public PropertyTreeNode ( Mono.Cecil.PropertyDefinition property )
property Mono.Cecil.PropertyDefinition
        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));
            }
        }