| ofs | hex dump | ascii |
|---|
| 0000 | 21 3c 61 72 63 68 3e 0a 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 34 33 30 39 37 39 34 | !<arch>./...............14309794 |
| 0020 | 33 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 33 38 38 20 20 20 20 20 | 30..............0.......388..... |
| 0040 | 20 20 60 0a 00 00 00 0f 00 00 03 92 00 00 05 c0 00 00 06 f8 00 00 08 c4 00 00 08 c4 00 00 0a 14 | ..`............................. |
| 0060 | 00 00 0a 14 00 00 0a 82 00 00 0a 82 00 00 09 a8 00 00 09 a8 00 00 09 32 00 00 09 32 00 00 08 54 | .......................2...2...T |
| 0080 | 00 00 08 54 5f 5f 49 4d 50 4f 52 54 5f 44 45 53 43 52 49 50 54 4f 52 5f 6c 6d 75 73 62 64 6c 6c | ...T__IMPORT_DESCRIPTOR_lmusbdll |
| 00a0 | 00 5f 5f 4e 55 4c 4c 5f 49 4d 50 4f 52 54 5f 44 45 53 43 52 49 50 54 4f 52 00 7f 6c 6d 75 73 62 | .__NULL_IMPORT_DESCRIPTOR..lmusb |
| 00c0 | 64 6c 6c 5f 4e 55 4c 4c 5f 54 48 55 4e 4b 5f 44 41 54 41 00 49 6e 69 74 69 61 6c 69 7a 65 44 65 | dll_NULL_THUNK_DATA.InitializeDe |
| 00e0 | 76 69 63 65 00 5f 5f 69 6d 70 5f 49 6e 69 74 69 61 6c 69 7a 65 44 65 76 69 63 65 00 54 65 72 6d | vice.__imp_InitializeDevice.Term |
| 0100 | 69 6e 61 74 65 44 65 76 69 63 65 00 5f 5f 69 6d 70 5f 54 65 72 6d 69 6e 61 74 65 44 65 76 69 63 | inateDevice.__imp_TerminateDevic |
| 0120 | 65 00 57 72 69 74 65 55 53 42 50 61 63 6b 65 74 00 5f 5f 69 6d 70 5f 57 72 69 74 65 55 53 42 50 | e.WriteUSBPacket.__imp_WriteUSBP |
| 0140 | 61 63 6b 65 74 00 52 65 61 64 55 53 42 50 61 63 6b 65 74 00 5f 5f 69 6d 70 5f 52 65 61 64 55 53 | acket.ReadUSBPacket.__imp_ReadUS |
| 0160 | 42 50 61 63 6b 65 74 00 49 6e 69 74 69 61 6c 69 7a 65 44 65 76 69 63 65 42 79 49 6e 64 65 78 00 | BPacket.InitializeDeviceByIndeusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.CodeGeneration
{
/// <summary>
/// Represents a property code object.
/// </summary>
/// <seealso cref="Tango.CodeGeneration.CodeObject" />
public class Property : CodeObject
{
/// <summary>
/// Gets or sets the property name.
/// </summary>
public String Name { get; set; }
/// <summary>
/// Gets or sets the property type.
/// </summary>
public String Type { get; set; }
/// <summary>
/// Gets or sets the property description.
/// </summary>
public String Description { get; set; }
/// <summary>
/// Gets or sets the property setter modifier.
/// </summary>
public CodeObjectModifier SetterModifier { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this property has a setter.
/// </summary>
public bool HasSetter { get; set; }
/// <summary>
/// Gets or sets the content of the setter.
/// </summary>
public String SetterContent { get; set; }
/// <summary>
/// Gets or sets the content of the getter.
/// </summary>
public String GetterContent { get; set; }
/// <summary>
/// Gets the private field.
/// </summary>
/// <returns></returns>
public virtual String GetPrivateField()
{
return "_" + Name.ToLower();
}
/// <summary>
/// Initializes a new instance of the <see cref="Property"/> class.
/// </summary>
public Property()
: base()
{
Name = "MyProperty";
Type = "int";
SetterModifier = CodeObjectModifier.None;
}
/// <summary>
/// Initializes a new instance of the <see cref="Property"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="type">The type.</param>
public Property(String name, String type)
: this()
{
Name = name;
Type = type;
}
}
}
|