Glare.Engine.NodeType.GetProperty C# (CSharp) Method

GetProperty() public method

Get a property of the type, or throw an exception.
This does not have an instance public or private property named .
public GetProperty ( string name ) : NodeTypeProperty
name string
return NodeTypeProperty
        public NodeTypeProperty GetProperty(string name)
        {
            NodeTypeProperty property;

            if (propertiesByName.TryGetValue(name, out property))
                return property;

            PropertyInfo info = type.GetProperty(name, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            if (info == null)
                throw new ArgumentException("Type " + Name + " does not have a property named " + name + ".");

            return propertiesByName[name] = new NodeTypeProperty(this, info);
        }