/// <summary> /// Konvertiert das angegebene Objekt zu einem Integer (int32) /// </summary> /// <param name="value">Zu Konvertierendes Objekt</param> /// <param name="defaultValue">Standardwert</param> /// <returns>int</returns> static public int Int(object value, int defaultValue) { int?result = ConvertTo.IntNull(value); if (result.HasValue) { return(result.Value); } else { return(defaultValue); } }