/// <summary> /// 新增值 /// </summary> /// <param name="prototypeEnum"></param> /// <param name="copyDocument"></param> public void AddCopyDocument(PrototypeEnum prototypeEnum, CopyDocument copyDocument) { if (!dict.ContainsKey(prototypeEnum)) { dict.Add(prototypeEnum, copyDocument); } }
/// <summary> /// 获取值 /// </summary> /// <param name="prototypeEnum"></param> /// <returns></returns> public CopyDocument GetCopyDocumentByKey(PrototypeEnum prototypeEnum) { if (dict.ContainsKey(prototypeEnum)) { return(dict[prototypeEnum].Clone()); } return(null); }