Пример #1
0
		public ClassMetaData GetClassMetaData(Type type)
		{
			ClassMetaData result;
			metadataMaps.TryGetValue(type, out result);
			if (result == null)
			{
				try
				{
					result = new ClassMetaData(type);
					metadataMaps.Add(type, result);
					result.Create();
				}
				catch (Exception e)
				{
					Logger.Log.WriteLog("Exception while register object: " + e);
				}
			}
			return result;
		}
Пример #2
0
        public ClassMetaData GetClassMetaData(Type type)
        {
            ClassMetaData result;

            metadataMaps.TryGetValue(type, out result);
            if (result == null)
            {
                try
                {
                    result = new ClassMetaData(type);
                    metadataMaps.Add(type, result);
                    result.Create();
                }
                catch (Exception e)
                {
                    Logger.Log.WriteLog("Exception while register object: " + e);
                }
            }
            return(result);
        }