PageRenderTime 51ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/Shared/Member Management/TradingCenterProfileCommon/IsNullOrEmpty.cs

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