示例#1
0
        public override string ToString()
        {
            var returnString =
                $"Key: {Key.ToKeyString()}," +
                $" Text: {Text}," +
                $" Flag: {Flag}," +
                $" Number: {Number}," +
                $" Amount: {Amount}," +
                $" Amount4: {Amount4}," +
                $" Amount5: {Amount5}," +
                $" PreciseDecimal: {PreciseDecimal}," +
                $" SampleState: {SampleState}," +
                $" DateOnly: {DateOnly.ToShortDateString()}," +
                $" TimeOnly: {TimeOnly}," +
                $" DateTimeTicks: {DateTimeTicks}," +
                $" DateTimeMinute: {DateTimeMinute}," +
                $" DateTimeSecond: {DateTimeSecond}," +
                $" OneMaster: {OneMaster?.ToShortString()}," +
                $" OtherMaster: {OtherMaster?.ToShortString()}," +
                $" Optional: {Optional}," +
                $" SampleDetails: {SampleDetails.Count};";

            onToString(ref returnString);
            return(returnString);
        }
示例#2
0
        public string ToShortString()
        {
            var returnString =
                $"{Key.ToKeyString()}," +
                $" {Text}," +
                $" {Flag}," +
                $" {Number}," +
                $" {Amount}," +
                $" {Amount4}," +
                $" {Amount5}," +
                $" {PreciseDecimal}," +
                $" {SampleState}," +
                $" {DateOnly.ToShortDateString()}," +
                $" {TimeOnly}," +
                $" {DateTimeTicks}," +
                $" {DateTimeMinute}," +
                $" {DateTimeSecond}," +
                $" {OneMaster?.ToShortString()}," +
                $" {OtherMaster?.ToShortString()}," +
                $" {Optional}";

            onToShortString(ref returnString);
            return(returnString);
        }
示例#3
0
        public string ToTraceString()
        {
            var returnString =
                $"{this.GetKeyOrHash()}|" +
                $" {Text}|" +
                $" {Flag}|" +
                $" {Number}|" +
                $" {Amount}|" +
                $" {Amount4}|" +
                $" {Amount5}|" +
                $" {PreciseDecimal}|" +
                $" {SampleState}|" +
                $" {DateOnly.ToShortDateString()}|" +
                $" {TimeOnly}|" +
                $" {DateTimeTicks}|" +
                $" {DateTimeMinute}|" +
                $" {DateTimeSecond}|" +
                $" OneMaster {OneMaster?.GetKeyOrHash()}|" +
                $" OtherMaster {OtherMaster?.GetKeyOrHash()}|" +
                $" {Optional}";

            onToTraceString(ref returnString);
            return(returnString);
        }