BelhardTraining.LessonIO.Program.GetWmiValue C# (CSharp) Méthode

GetWmiValue() static private méthode

static private GetWmiValue ( ManagementObject manObj, string propertyName ) : string
manObj ManagementObject
propertyName string
Résultat string
        static string GetWmiValue(ManagementObject manObj, string propertyName)
        {
            object result = manObj[propertyName];
            return result == null ? "" : result.ToString();
        }