AoMBrgEditor.PssgNode.this C# (CSharp) Метод

this() публичный Метод

Gets or sets the node attribute associated with the specified attribute id.
public this ( int attributeID ) : PssgAttribute
attributeID int The id of the attribute to get or set.
Результат PssgAttribute
        public PssgAttribute this[int attributeID]
        {
            get
            {
                List<string> keys = new List<string>(attributes.Keys);
                for (int i = 0; i < keys.Count; i++)
                {
                    if (attributes[keys[i]].id == attributeID)
                    {
                        return attributes[keys[i]];
                    }
                }
                throw new ArgumentOutOfRangeException("attributeID");
                //return attributes.First(x => x.Value.id == id).Value;
            }
            set
            {
                this[attributeID] = value;
            }
        }

Same methods

PssgNode::this ( string attributeName ) : PssgAttribute