Constructor ObjectCommand
ObjectCommand(object, IBsonSerializer<TResult>)
Initializes a new instance of the ObjectCommand<TResult> class.
public ObjectCommand(object obj, IBsonSerializer<TResult> resultSerializer = null)
Parameters
obj
objectThe object.
resultSerializer
IBsonSerializer<TResult>The result serializer.