Class H5ReadOptions
- Namespace
- PureHDF
- Assembly
- PureHDF.dll
Provides options to be used with H5File.
public record H5ReadOptions : IEquatable<H5ReadOptions>
- Inheritance
-
H5ReadOptions
- Implements
Constructors
H5ReadOptions(H5ReadOptions)
protected H5ReadOptions(H5ReadOptions original)
Parameters
originalH5ReadOptions
H5ReadOptions(bool, bool, bool, bool, Func<FieldInfo, string?>?, Func<PropertyInfo, string?>?)
Provides options to be used with H5File.
public H5ReadOptions(bool IncludeStructFields = true, bool IncludeStructProperties = false, bool IncludeClassFields = false, bool IncludeClassProperties = true, Func<FieldInfo, string?>? FieldNameMapper = null, Func<PropertyInfo, string?>? PropertyNameMapper = null)
Parameters
IncludeStructFieldsboolA value that indicates whether struct fields are handled during serialization. The default value is true.
IncludeStructPropertiesboolA value that indicates whether struct properties are handled during serialization. The default value is false.
IncludeClassFieldsboolA value that indicates whether class fields are handled during serialization. The default value is false.
IncludeClassPropertiesboolA value that indicates whether class properties are handled during serialization. The default value is true.
FieldNameMapperFunc<FieldInfo, string>Maps a FieldInfo to the name of the HDF5 member.
PropertyNameMapperFunc<PropertyInfo, string>Maps a PropertyInfo to the name of the HDF5 member.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FieldNameMapper
Maps a FieldInfo to the name of the HDF5 member.
public Func<FieldInfo, string?>? FieldNameMapper { get; init; }
Property Value
IncludeClassFields
A value that indicates whether class fields are handled during serialization. The default value is false.
public bool IncludeClassFields { get; init; }
Property Value
IncludeClassProperties
A value that indicates whether class properties are handled during serialization. The default value is true.
public bool IncludeClassProperties { get; init; }
Property Value
IncludeStructFields
A value that indicates whether struct fields are handled during serialization. The default value is true.
public bool IncludeStructFields { get; init; }
Property Value
IncludeStructProperties
A value that indicates whether struct properties are handled during serialization. The default value is false.
public bool IncludeStructProperties { get; init; }
Property Value
PropertyNameMapper
Maps a PropertyInfo to the name of the HDF5 member.
public Func<PropertyInfo, string?>? PropertyNameMapper { get; init; }
Property Value
Methods
Deconstruct(out bool, out bool, out bool, out bool, out Func<FieldInfo, string?>?, out Func<PropertyInfo, string?>?)
public void Deconstruct(out bool IncludeStructFields, out bool IncludeStructProperties, out bool IncludeClassFields, out bool IncludeClassProperties, out Func<FieldInfo, string?>? FieldNameMapper, out Func<PropertyInfo, string?>? PropertyNameMapper)
Parameters
IncludeStructFieldsboolIncludeStructPropertiesboolIncludeClassFieldsboolIncludeClassPropertiesboolFieldNameMapperFunc<FieldInfo, string>PropertyNameMapperFunc<PropertyInfo, string>
Equals(H5ReadOptions?)
public virtual bool Equals(H5ReadOptions? other)
Parameters
otherH5ReadOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
<Clone>$()
public virtual H5ReadOptions <Clone>$()
Returns
Operators
operator ==(H5ReadOptions?, H5ReadOptions?)
public static bool operator ==(H5ReadOptions? left, H5ReadOptions? right)
Parameters
leftH5ReadOptionsrightH5ReadOptions
Returns
operator !=(H5ReadOptions?, H5ReadOptions?)
public static bool operator !=(H5ReadOptions? left, H5ReadOptions? right)
Parameters
leftH5ReadOptionsrightH5ReadOptions