コード例 #1
0
        public override bool Compare(IssuanceStatement other)
        {
            CopyClaimIssuanceStatement copyClaimIssuanceStatement = other as CopyClaimIssuanceStatement;

            if (copyClaimIssuanceStatement != null)
            {
                return(StringComparer.OrdinalIgnoreCase.Equals(this.ConditionTag, copyClaimIssuanceStatement.ConditionTag));
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
ファイル: PolicyLanguageParser.cs プロジェクト: nickchal/pash
		private void HandleClaimCopy__CLAIM_ASSIGN_IDENTIFIER()
		{
			DebugLog.PolicyEngineTraceLog.Assert(this.valueStack.Top - 1 >= 0, "there should be more than 0 value in stack", new object[0]);
			string stringValue = this.valueStack.Elements[this.valueStack.Top - 1].StringValue;
			if (!string.IsNullOrEmpty(stringValue))
			{
				CopyClaimIssuanceStatement copyClaimIssuanceStatement = new CopyClaimIssuanceStatement(stringValue);
				this._policyObjects.Push(copyClaimIssuanceStatement);
				return;
			}
			else
			{
				object[] objArray = new object[1];
				objArray[0] = "identifier";
				throw new InvalidOperationException(SR.GetString("POLICY0037", objArray));
			}
		}