12345678910111213141516171819202122232425262728293031323334353637 |
-
- using System.Collections.Generic;
- using System.Reflection;
- namespace JBIM.Common
- {
- public static class PropertyCache
- {
- private static readonly Dictionary<string, PropertyInfo> m_CacheProperties = new Dictionary<string, PropertyInfo>();
-
-
-
-
-
- public static void SetProperty(string key, PropertyInfo propertyInfo)
- {
- m_CacheProperties[key] = propertyInfo;
- }
-
-
-
-
-
- public static PropertyInfo GetProperty(string key)
- {
- m_CacheProperties.TryGetValue(key, out PropertyInfo result);
- return result;
- }
- }
- }
|