Add XML documentation across gateway, worker, and .NET client
This commit is contained in:
@@ -8,11 +8,22 @@ namespace MxGateway.Worker.Conversion;
|
||||
|
||||
public sealed class VariantConverter
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts an object value to an MxValue without a specified data type.
|
||||
/// </summary>
|
||||
/// <param name="value">Value to convert.</param>
|
||||
/// <returns>Converted MxValue.</returns>
|
||||
public MxValue Convert(object? value)
|
||||
{
|
||||
return Convert(value, MxDataType.Unspecified);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts an object value to an MxValue with an expected data type.
|
||||
/// </summary>
|
||||
/// <param name="value">Value to convert.</param>
|
||||
/// <param name="expectedDataType">Expected MXAccess data type.</param>
|
||||
/// <returns>Converted MxValue.</returns>
|
||||
public MxValue Convert(
|
||||
object? value,
|
||||
MxDataType expectedDataType)
|
||||
@@ -35,6 +46,12 @@ public sealed class VariantConverter
|
||||
return ConvertScalar(value, expectedDataType);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a .NET array to an MxArray.
|
||||
/// </summary>
|
||||
/// <param name="array">Array to convert.</param>
|
||||
/// <param name="expectedElementDataType">Expected data type for array elements.</param>
|
||||
/// <returns>Converted MxArray.</returns>
|
||||
public MxArray ConvertArray(
|
||||
Array array,
|
||||
MxDataType expectedElementDataType = MxDataType.Unspecified)
|
||||
|
||||
Reference in New Issue
Block a user