.

Friendly Debug Display Info (DebuggerDisplay)

To show a friendly view of an object, use DebuggerDisplay:

namespace PasPlus.BusinessObjects.Core
{
    [Serializable]
    [DebuggerDisplay("{Forname,nq} {Surname,nq} (Patient_id: {Patient_id,nq})")]
    public partial class Patient : Bitlink.DataAccess.BusinessObject
    {
        internal Int64 patient_id; 
        public Int64 Patient_id
        {
            get { return patient_id; }
            set
            {
                patient_id = value;
                _data_access_isdirty = true;
            }
        }
...

 

the code:

[DebuggerDisplay("{Forname,nq} {Surname,nq} (Patient_id: {Patient_id,nq})")]

from the namespace:   System.Diagnostics

will replace the the following popup:

DebuggerDisplay_before

with a friendlier one:

DebuggerDisplay_after

What's your thoughts on this?

*

Protected by WP Anti Spam