예제 #1
0
        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());
        }
예제 #2
0
        private string GetFieldDefinition(MemberDefinition member)
        {
            Contract.Requires(member != null);

            return($"public {member.Type} {member.Name}; //0x{member.Offset:X04} {member.Comment}".Trim());
        }
예제 #3
0
        private string GetFieldDecorator(MemberDefinition member)
        {
            Contract.Requires(member != null);

            return($"[FieldOffset({member.Offset})]");
        }