protected GXDLMSAttributeSettings GetAttribute(int index, GXAttributeCollection attributes)
{
GXDLMSAttributeSettings att = this.Attributes.Find(index);
if (att == null)
{
att = new GXDLMSAttributeSettings(index);
//LN is read only.
if (index == 1)
{
att.Access = AccessMode.Read;
}
if (attributes != null)
{
attributes.Add(att);
}
}
return att;
}