Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
588 B

namespace CppSharp.AST
{
public class LayoutField
{
public LayoutField(uint offset, Field field)
{
Field = field;
Offset = offset;
}
public uint Offset { get; set; }
public string Name
{
get { return name ?? Field.OriginalName; }
set { name = value; }
}
public Field Field { get; set; }
public override string ToString()
{
return string.Format("{0} | {1}", Offset, Field.OriginalName);
}
private string name;
}
}