public TagRWState() { PartBaseState = new Modular.Part.BaseState(); ReadTagIDActionInfo = new TagActionInfo(); ReadPagesActionInfo = new TagActionInfo(); WritePagesActionInfo = new TagActionInfo(); CombinedActionInfo = new TagActionInfo(); }
public TagRWState SetFrom(ITagRWState other, bool asReadOnly = false) { NVS = (asReadOnly) ? other.NVS.ConvertToReadOnly(mapNullToEmpty: false) : (other.NVS.IsNullOrEmpty() ? null : new NamedValueSet(other.NVS)); ReadTagIDActionInfo = new TagActionInfo(other.ReadTagIDActionInfo); ReadPagesActionInfo = new TagActionInfo(other.ReadPagesActionInfo); WritePagesActionInfo = new TagActionInfo(other.WritePagesActionInfo); CombinedActionInfo = new TagActionInfo(other.CombinedActionInfo); PartBaseState = new BaseState(other.PartBaseState); return(this); }