KGy SOFT

SettingFieldEventArgs Class

KGy SOFT Core Libraries Help
Provides arguments for the CustomSerializerSurrogateSelector.SettingField event.
Inheritance Hierarchy

SystemObject
  SystemEventArgs
    System.ComponentModelHandledEventArgs
      KGySoft.Serialization.BinarySettingFieldEventArgs

Namespace:  KGySoft.Serialization.Binary
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.2
Syntax

public class SettingFieldEventArgs : HandledEventArgs

The SettingFieldEventArgs type exposes the following members.

Properties

  NameDescription
Public propertyContext
Gets the context of this deserialization.
Public propertyEntry
Gets the current SerializationEntry of the of the Object being deserialized.
Public propertyField
Gets or sets the field to be set. If  and IgnoreNonExistingFields is , then a SerializationException will be thrown. You may either set this property by the matching field or set the Handled to  to skip the default processing.
Default value: The field identified as the matching field, or , if such field was not found.
Public propertyObject
Gets the object that is being deserialized.
Public propertySerializationInfo
Gets the SerializationInfo of the of the Object being deserialized.
Public propertyValue
Gets or sets the value to be set.
To prevent setting any value make sure you set the Handled property to  to omit the default deserialization logic.
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Top
See Also

Reference