private string MemberDefinitionToString(MemberDefinition member) { Contract.Requires(member != null); if (member.IsArray) { return($"{member.Type} {member.Name}[{member.ArrayCount}]; //0x{member.Offset:X04} {member.Comment}".Trim()); } return($"{member.Type} {member.Name}; //0x{member.Offset:X04} {member.Comment}".Trim()); }
private string GetFieldDefinition(MemberDefinition member) { Contract.Requires(member != null); return($"public {member.Type} {member.Name}; //0x{member.Offset:X04} {member.Comment}".Trim()); }
private string GetFieldDecorator(MemberDefinition member) { Contract.Requires(member != null); return($"[FieldOffset({member.Offset})]"); }