public override AttributesToSave GetAttributesToSave(ISystemContext context)
{
AttributesToSave attributesToSave = base.GetAttributesToSave(context);
if (WrappedValue != Variant.Null)
{
attributesToSave |= AttributesToSave.Value;
}
if (!NodeId.IsNull(m_dataType))
{
attributesToSave |= AttributesToSave.DataType;
}
if (m_valueRank != ValueRanks.Any)
{
attributesToSave |= AttributesToSave.ValueRank;
}
if (m_arrayDimensions != null)
{
attributesToSave |= AttributesToSave.ArrayDimensions;
}
return attributesToSave;
}