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