Exemplo n.º 1
0
 public static object GetInstance(TypeMetric obj)
 {
     if (ReferenceEquals(obj, null))
     {
         return(null);
     }
     return(obj._Instance);
 }
Exemplo n.º 2
0
        public static object GetInstance(object obj)
        {
            if (ReferenceEquals(obj, null))
            {
                return(null);
            }
            TypeMetric casted = obj as TypeMetric;

            if (ReferenceEquals(casted, null))
            {
                return(obj);
            }
            return(casted._Instance);
        }
Exemplo n.º 3
0
		public static object GetInstance(TypeMetric obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}