Class DataObject
Specific and mutable implementation of the IDataObject interface.
public class DataObject : IDataObject
- Inheritance
-
DataObject
- Implements
- Inherited Members
- Extension Methods
Constructors
DataObject()
public DataObject()
Methods
Contains(string)
Checks whether a given DataFormat is present in this object DataFormats
public bool Contains(string dataFormat)
Parameters
dataFormat
string
Returns
Get(string)
Tries to get the data of the given DataFormat.
public object? Get(string dataFormat)
Parameters
dataFormat
string
Returns
- object
Object data. If format isn't available, returns null.
GetDataFormats()
Lists all formats which are present in the DataObject. DataFormats
public IEnumerable<string> GetDataFormats()
Returns
Set(string, object)
Sets a value to the internal store of the data object with DataFormats as a key.
public void Set(string dataFormat, object value)