Example #1
0
        public override bool Compare(IssuanceStatement other)
        {
            NewClaimIssuanceStatement newClaimIssuanceStatement = other as NewClaimIssuanceStatement;

            if (newClaimIssuanceStatement != null)
            {
                if (this.ClaimPropertyAssignments.Count == newClaimIssuanceStatement.ClaimPropertyAssignments.Count)
                {
                    int num = 0;
                    while (num < this.ClaimPropertyAssignments.Count)
                    {
                        if (this.ClaimPropertyAssignments[num].Compare(newClaimIssuanceStatement.ClaimPropertyAssignments[num]))
                        {
                            num++;
                        }
                        else
                        {
                            return(false);
                        }
                    }
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }
Example #2
0
		private void HandleClaimNew__ClaimPropAssignList()
		{
			if (this._policyObjects.Count != 0)
			{
				Collection<ClaimPropertyAssignment> claimPropertyAssignments = this._policyObjects.Peek() as Collection<ClaimPropertyAssignment>;
				if (claimPropertyAssignments != null)
				{
					this._policyObjects.Pop();
					NewClaimIssuanceStatement newClaimIssuanceStatement = new NewClaimIssuanceStatement();
					foreach (ClaimPropertyAssignment claimPropertyAssignment in claimPropertyAssignments)
					{
						newClaimIssuanceStatement.ClaimPropertyAssignments.Add(claimPropertyAssignment);
					}
					this._policyObjects.Push(newClaimIssuanceStatement);
					return;
				}
				else
				{
					object[] objArray = new object[1];
					objArray[0] = "Collection<ClaimPropertyAssignment>";
					throw new InvalidOperationException(SR.GetString("POLICY0037", objArray));
				}
			}
			else
			{
				throw new InvalidOperationException(SR.GetString("POLICY0038", new object[0]));
			}
		}