public TenantBudgetKey(OrganizationId organizationId, BudgetType budgetType) : base(budgetType, false) { this.organizationId = organizationId; this.cachedToString = TenantBudgetKey.GetCachedToString(organizationId, budgetType); this.cachedHashCode = this.cachedToString.GetHashCode(); }
protected virtual bool InternalEquals(object obj) { TenantBudgetKey tenantBudgetKey = obj as TenantBudgetKey; return(!(tenantBudgetKey == null) && tenantBudgetKey.BudgetType == base.BudgetType && tenantBudgetKey.OrganizationId == this.OrganizationId); }