// SMemberWrapper Struct이므로 값복사를 막기위한 ref static void AddDictionary_MemberInfo(string strKey, ref SMemberWrapper sMemberWrapper) { if (_mapMemberInfoTemp.ContainsKey(strKey)) { Debug.LogError(typeof(SCManagerParserText).Name + "중복되는 키값이 존재합니다. Key : " + strKey); return; } _mapMemberInfoTemp.Add(strKey, sMemberWrapper); }
static void ProcAddField(IEnumerable <PropertyInfo> arrProperty) { if (arrProperty.Count() == 0) { return; } foreach (PropertyInfo pProperty in arrProperty) { SMemberWrapper sMemberWrapper = new SMemberWrapper(pProperty); KeyAttribute pKeyAttribute = GetKeyAttribute_OrNull(pProperty); if (pKeyAttribute != null) { AddDictionary_MemberInfo(pKeyAttribute.strKeyName, ref sMemberWrapper); } else { AddDictionary_MemberInfo(pProperty.Name, ref sMemberWrapper); } } }