New Reply

How to draw class diagram for the class having getters and setters

Hello,

How do I draw the class diagram with getters and setters given below ?

============================================================================================ using System; using BC.Shared.Extensions;

namespace BC.Gopi.Models { public class CountryConfigurationModel { public string CountryIsoCode { get; set; } public string MerchantId { get; set; } public string CurrencyCode { get; set; } public bool ThreeDSecurityEnabled { get; set; } public int CurrencyDecimalDigits { get; set; } public string CreditCardTypes { get; set; } public string SerializedCustomSettings { get; set; }

    private object _customSettings;
    public T GetCustomSettings<T>()
    {
        if (_customSettings == null)
        {
            if (String.IsNullOrEmpty(SerializedCustomSettings))
                throw new Exception("SerializedCustomSettings not found for MerchantProvider with Id = " + MerchantId);
            _customSettings = SerializedCustomSettings.FromJsonString<T>();
        }
        return (T)_customSettings;
    }
}

}

Product: Astah Community

Question Details

Preview: