Class Unknown
This type is used during deserialization if an unknown type is encountered.
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
[Serializable]
public class Unknown : DynamicObject, IDynamicMetaObjectProvider, ISerializable
Constructors
View SourceUnknown()
Creates a new instance of the Unknown class.
Declaration
public Unknown()
Unknown(SerializationInfo, StreamingContext)
Initializes a new instance of the Unknown class.
Declaration
protected Unknown(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
| StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Methods
View SourceGetDynamicMemberNames()
Returns the enumeration of all dynamic member names.
Declaration
public override IEnumerable<string> GetDynamicMemberNames()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | A sequence that contains dynamic member names. |
Overrides
View SourceGetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo to populate with data. |
| StreamingContext | context | The destination (see StreamingContext) for this serialization. |
Exceptions
| Type | Condition |
|---|---|
| SecurityException | The caller does not have the required permission. |
TryGetMember(GetMemberBinder, out object)
Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
Declaration
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
| Type | Name | Description |
|---|---|---|
| GetMemberBinder | binder | Provides information about the object that called the dynamic operation. The |
| object | result | The result of the get operation. For example, if the method is called for a property, you can assign the property value to |
Returns
| Type | Description |
|---|---|
| bool | true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.) |
Overrides
View SourceTrySetMember(SetMemberBinder, object)
Provides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
Declaration
public override bool TrySetMember(SetMemberBinder binder, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| SetMemberBinder | binder | Provides information about the object that called the dynamic operation. The |
| object | value | The value to set to the member. For example, for |
Returns
| Type | Description |
|---|---|
| bool | true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.) |