BO4E/BO/BusinessObject.cs
/// <summary>
///     Tests if the object does contain all mandatory information / fields.
///     To do so, the function tries to serialize the object as JSON.
///     If the serialization fails due to fields that are <see cref="JsonPropertyAttribute.Required" /> but not filled
///     it returns false and true otherwise.
/// </summary>
/// <returns>true if COM object is compatible with BO4E standards</returns>
Tests if the object does contain all mandatory information / fields.
To do so, the function tries to serialize the object as JSON.
If the serialization fails due to fields that are  but not filled
it returns false and true otherwise.
Tests if the object does contain all mandatory information / fields . To do so the function tries to serialize the object as JSON . If the serialization fails due to fields that are but not filled it returns false and true otherwise .
public virtual bool IsValid()
        {
            try
            {
                JsonConvert.SerializeObject(this);
            }
            catch (JsonSerializationException)
            {
                return false;
            }
            return true;
        }
public virtual bool IsValid ( ) { try { JsonConvert . SerializeObject ( this ) ; } catch ( JsonSerializationException ) { return false ; } return true ; }
Tests if the object does contain all mandatory information / fields.
Tests if the object does contain all mandatory information / fields .
true if COM object is compatible with BO4E standards
true if COM object is compatible with BO4E standards