-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestObject.cs
More file actions
38 lines (34 loc) · 1.11 KB
/
TestObject.cs
File metadata and controls
38 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DataImportExample
{
#region #testobject
class TestObject
{
public TestObject(int intValue, string value, bool boolValue, byte[] imageValue)
{
this.intValue = intValue;
this.Value = value;
this.BoolValue = boolValue;
this.ImageValue = imageValue;
}
public TestObject(int intValue, string value, bool boolValue, string imageBase64)
{
this.intValue = intValue;
this.Value = value;
this.BoolValue = boolValue;
this.ImageBase64 = imageBase64;
}
public int intValue;
private int privateValue { get { return 123; } }
public int IntValue { get { return intValue + privateValue - 123; } }
public string Value { get; set; }
public bool BoolValue { get; set; }
public byte[] ImageValue { get; set; }
public int this[int index] { get { return index; } }
public string ImageBase64 { get; set; }
}
#endregion #testObject
}