blob: 87524f07a6caf4feb2e63b38c7b8fbbdc4f2f3c2 (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 01 2c 01 2c 00 00 ff db 00 43 00 06 04 04 05 04 04 06 | ......JFIF.....,.,.....C........ |
| 0020 | 05 05 05 06 06 06 07 09 0e 09 09 08 08 09 12 0d 0d 0a 0e 15 12 16 16 15 12 14 14 17 1a 21 1c 17 | .............................!.. |
| 0040 | 18 1f 19 14 14 1d 27 1d 1f 22 23 25 25 25 16 1c 29 2c 28 24 2b 21 24 25 24 ff db 00 43 01 06 06 | ......'.."#%%%..),($+!$%$...C... |
| 0060 | 06 09 08 09 11 09 09 11 24 18 14 18 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 | ........$...$$$$$$$$$$$$$$$$$$$$ |
| 0080 | 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 ff c2 | $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.. |
| 00a0 | 00 11 08 02 a3 04 38 03 01 11 00 02 11 01 03 11 01 ff c4 00 1b 00 01 00 02 03 01 01 00 00 00 00 | ......8......................... |
| 00c0 | 00 00 00 00 00 00 00 01 02 03 04 05 06 07 ff c4 00 1b 01 01 00 02 03 01 01 00 00 00 00 00 00 00 | ................................ |
| 00e0 | 00 00using 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;
}
}
}
|