Click or drag to resize

JsonViewModelSerializer Class

Represents a JSON view model serializer
Inheritance Hierarchy
SystemObject
  SanteDB.Core.Applets.ViewModel.JsonJsonViewModelSerializer

Namespace:  SanteDB.Core.Applets.ViewModel.Json
Assembly:  SanteDB.Core.Applets (in SanteDB.Core.Applets.dll) Version: 2.2.1
Syntax
public class JsonViewModelSerializer : IViewModelSerializer, 
	IDisposable

The JsonViewModelSerializer type exposes the following members.

Constructors
  NameDescription
Public methodJsonViewModelSerializer
Creates a json view model serializer
Top
Properties
  NameDescription
Public propertyViewModel
Gets or sets the view model definition for this view model serializer
Top
Methods
  NameDescription
Public methodAddLoadedObject
Add a loaded object
Public methodDeSerialize(Stream, Type)
De-serializes the data from the stream as the specified type
Public methodDeSerialize(TextReader, Type)
De-serializes data from the reader as specified type
Public methodDeSerializeTModel(Stream)
De-serializes the specified object from the stream
Public methodDeSerializeTModel(String)
De-serialize data from the string
Public methodDispose
Dispose of the specified object
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetClassifier
Gets the appropriate classifier for the specified type
Public methodGetFormatter
Get the specified formatter
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLoadedObject
Attempts to get the loaded object
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadCollectionTAssociation
Delay loads the specified collection association
Public methodLoadRelatedTRelated
Load the related information
Public methodLoadSerializerAssembly
Load the specified serializer assembly
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadElementUtil
Read the specified element
Public methodSerialize(IdentifiedData)
Serialize object to string
Public methodSerialize(JsonWriter, IdentifiedData)
Serialize data
Public methodSerialize(Stream, IdentifiedData)
Serialize the specified data
Public methodSerialize(TextWriter, IdentifiedData)
Serialize to the specified text writer
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWritePropertyUtil
Write property utility
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also