Beispiel #1
0
 public static int GetMiType(Type type)
 {
     if (type.IsArray)
     {
         return(0x2000);
     }
     return((int)CimTypeConverter.GetCimType(type));
 }
Beispiel #2
0
        private static CimType GetCimTypeFromDotNetValue(object dotNetValue)
        {
            if (dotNetValue != null)
            {
                CimType cimType = CimTypeConverter.GetCimType(dotNetValue.GetType());
                if (cimType != CimType.None)
                {
                    return(cimType);
                }
            }

            return(CimType.None);
        }