TypeCheckFunctionsExtensions.IsPrimitive(Object) TypeCheckFunctionsExtensions.IsPrimitive(Object) Method

Definition

Determines if a certain property is of premitive JSON type.

public static bool IsPrimitive (this object obj);
<Extension()>
Public Function IsPrimitive (obj As Object) As Boolean
Parameters
Returns

Returns true if this property is null otherwise returns false.

Examples


        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

        var isPrimitiveQuery = documents.Where(document => document.Name.IsPrimitive());
        

Remarks

Premitive JSON types (Double, String, Boolean and Null)

Applies to