|
|
@ -9,8 +9,6 @@ internal class Program
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TestPerson testPerson = new TestPerson();
|
|
|
|
TestPerson testPerson = new TestPerson();
|
|
|
|
testPerson.intParam = 11;
|
|
|
|
testPerson.intParam = 11;
|
|
|
|
testPerson.intParamNull = 12;
|
|
|
|
testPerson.intParamNull = 12;
|
|
|
@ -36,6 +34,8 @@ internal class Program
|
|
|
|
// testPerson.de2 = -12.12d;
|
|
|
|
// testPerson.de2 = -12.12d;
|
|
|
|
// testPerson.bl = false;
|
|
|
|
// testPerson.bl = false;
|
|
|
|
testPerson.ft2 = -13.126f;
|
|
|
|
testPerson.ft2 = -13.126f;
|
|
|
|
|
|
|
|
testPerson.ft3 = 1000f;
|
|
|
|
|
|
|
|
testPerson.d3 = -13.129d;
|
|
|
|
|
|
|
|
|
|
|
|
byte[] bytes2 = ModelConvert.Encode(testPerson);
|
|
|
|
byte[] bytes2 = ModelConvert.Encode(testPerson);
|
|
|
|
|
|
|
|
|
|
|
@ -65,9 +65,11 @@ internal class Program
|
|
|
|
//bool c4 = testPerson1.bl;
|
|
|
|
//bool c4 = testPerson1.bl;
|
|
|
|
float c5 = testPerson1.ft2;
|
|
|
|
float c5 = testPerson1.ft2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 偏移量
|
|
|
|
|
|
|
|
float c6 = testPerson1.ft3;
|
|
|
|
|
|
|
|
// double负数转换
|
|
|
|
|
|
|
|
double d3 = testPerson1.d3;
|
|
|
|
|
|
|
|
double d4 = -d3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PropertyAttribute> list = new List<PropertyAttribute>
|
|
|
|
List<PropertyAttribute> list = new List<PropertyAttribute>
|
|
|
@ -145,7 +147,6 @@ internal class Program
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Console.WriteLine(b);
|
|
|
|
Console.WriteLine(b);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static void Test1()
|
|
|
|
private static void Test1()
|
|
|
|