Пример #1
0
 public TenantBudgetKey(OrganizationId organizationId, BudgetType budgetType) : base(budgetType, false)
 {
     this.organizationId = organizationId;
     this.cachedToString = TenantBudgetKey.GetCachedToString(organizationId, budgetType);
     this.cachedHashCode = this.cachedToString.GetHashCode();
 }
Пример #2
0
        protected virtual bool InternalEquals(object obj)
        {
            TenantBudgetKey tenantBudgetKey = obj as TenantBudgetKey;

            return(!(tenantBudgetKey == null) && tenantBudgetKey.BudgetType == base.BudgetType && tenantBudgetKey.OrganizationId == this.OrganizationId);
        }