ParamValue.DataType Property
.NET Standard 2.x
Gets the data type of the parameter value.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public Type DataType { get; }
Property Value
System.Type
The data type of the parameter value.
Examples
The following code example gets the data type of the ParamValue object.
using SnapObjects.Data;
using System;
namespace Appeon.ApiDoc.ParamValueExamples
{
public class DataTypeExample
{
private readonly SchoolContext _context;
public DataTypeExample(SchoolContext context)
{
_context = context;
}
public void Example()
{
string data1 = "Economics";
var param = ParamValue.New("data1", data1);
// Gets and shows the data type of the ParamValue object
Console.WriteLine("ParamValue.DataType = {0}", param.DataType);
/*This code produces the following output:
ParamValue.DataType = System.String
*/
}
}
}
Applies to
.NET Standard
2.x