/Shared/Member Management/TradingCenterProfileCommon/IsNullOrEmpty.cs
C# | 18 lines | 12 code | 1 blank | 5 comment | 4 complexity | b4fb8170e8d3e6a168cbe15c003b9c93 MD5 | raw file
- using SpiderMaster;
-
- namespace SpiderMaster.AspNet.TradingSystem
- {
- public partial class TradingCenterProfileCommon
- {
- /// <summary> Determines whether [is null or empty] [the specified current]. </summary>
- /// <param name="Current">The current.</param>
- /// <returns>
- /// <c>true</c> if [is null or empty] [the specified current]; otherwise, <c>false</c>.
- /// </returns>
- [ReganSchroder(26, 5, 2010, 1, 10, 2009)]
- public static bool IsNullOrEmpty(TradingCenterProfileCommon Current)
- {
- return (Current.IsNull() || Current.Equals(Empty) || (Current.MemberId == MemberManagement.DefaultValues.IdNullValue) || Current.UserName.IsNullOrEmpty());
- }
- }
- }