public ExtensionListData ToData() { var data = new ExtensionListData(); data.List = _extensions.Select(m => m.Value.ToData()).ToList(); return(data); }
public BoctExtensionList(ExtensionListData data) : this() { var extensionDataList = data.List; if (extensionDataList == null) { throw new BoctException("Extension data is null."); } foreach (var extensionData in extensionDataList) { _extensions[extensionData.LUID] = new BoctExtension(extensionData); } }