示例#1
0
		public SelectionRule(IssuanceStatement issuanceStatement, RuleOutput output)
		{
			this._conditions = new NonNullableCollection<SelectionCondition>();
			Utility.VerifyNonNullArgument("issuanceStatement", issuanceStatement);
			base.IssuanceStatement = issuanceStatement;
			base.Output = output;
		}
示例#2
0
 public StageLayout()
 {
     Collision  = new NonNullableCollection <StageLayoutCollision>();
     Goals      = new NonNullableCollection <StageLayoutGoal>();
     Bumpers    = new NonNullableCollection <StageLayoutItem>();
     Jamabars   = new NonNullableCollection <StageLayoutItem>();
     Bananas    = new NonNullableCollection <StageLayoutBanana>();
     Unk40      = new NonNullableCollection <StageLayoutItemExt>();
     Unk48      = new NonNullableCollection <StageLayoutUnk48>();
     Unk50      = new NonNullableCollection <StageLayoutUnk50>();
     Unk60      = new NonNullableCollection <StageLayoutUnk60>();
     Unk70      = new NonNullableCollection <StageLayoutUnk70>();
     ModelNames = new NonNullableCollection <StageLayoutModelName>();
 }
示例#3
0
文件: Gcmf.cs 项目: trashbyte/LibGC
 public Gcmf()
 {
     SectionFlags               = 0;
     BoundingSphereCenter       = Vector3.Zero;
     BoundingSphereRadius       = 0.0f;
     TransformMatrixDefaultIdxs = new byte[8];
     for (int i = 0; i < TransformMatrixDefaultIdxs.Length; i++)
     {
         TransformMatrixDefaultIdxs[i] = byte.MaxValue;
     }
     Materials         = new NonNullableCollection <GcmfMaterial>();
     TransformMatrices = new NonNullableCollection <GcmfTransformMatrix>();
     VertexPool        = new OrderedSet <GcmfVertex>();
     Meshes            = new NonNullableCollection <GcmfMesh>();
     Type8Unknown1     = new NonNullableCollection <GcmfType8Unknown1>();
     Type8Unknown2     = new Collection <ushort>();
 }
		public NewClaimIssuanceStatement()
		{
			this._claimPropertyAssignments = new NonNullableCollection<ClaimPropertyAssignment>();
		}
示例#5
0
		public virtual void Initialize(string policy)
		{
			bool flag;
			this._rules = new NonNullableCollection<Rule>();
			if (!string.IsNullOrEmpty(policy))
			{
				PolicyLanguageParser policyLanguageParser = new PolicyLanguageParser();
				using (MemoryStream memoryStream = new MemoryStream())
				{
					using (StreamWriter streamWriter = new StreamWriter(memoryStream))
					{
						streamWriter.Write(policy);
						streamWriter.Flush();
						memoryStream.Seek((long)0, SeekOrigin.Begin);
						policyLanguageParser.Scanner = new Scanner(memoryStream);
						try
						{
							flag = policyLanguageParser.Parse();
						}
						catch (PolicyLanguageParserException policyLanguageParserException1)
						{
							PolicyLanguageParserException policyLanguageParserException = policyLanguageParserException1;
							memoryStream.Seek((long)0, SeekOrigin.Begin);
							string empty = string.Empty;
							using (StreamReader streamReader = new StreamReader(memoryStream))
							{
								int num = 1;
								while (true)
								{
									string str = streamReader.ReadLine();
									string str1 = str;
									if (str == null)
									{
										break;
									}
									int num1 = num;
									num = num1 + 1;
									if (num1 == policyLanguageParserException.LineNumber)
									{
										empty = str1;
									}
								}
							}
							object[] newLine = new object[7];
							newLine[0] = Environment.NewLine;
							newLine[1] = policyLanguageParserException.LineNumber;
							newLine[2] = policyLanguageParserException.ColumnNumber;
							newLine[3] = policyLanguageParserException.Text;
							newLine[4] = empty;
							newLine[5] = Environment.NewLine;
							newLine[6] = policyLanguageParserException.ErrMessage;
							throw new PolicyValidationException(SR.GetString("POLICY0002", newLine), policyLanguageParserException);
						}
						catch (Exception exception1)
						{
							Exception exception = exception1;
							if (!ExceptionUtility.IsFatal(exception))
							{
								object[] message = new object[1];
								message[0] = exception.Message;
								throw new PolicyValidationException(SR.GetString("POLICY0003", message), exception);
							}
							else
							{
								throw;
							}
						}
					}
				}
				object[] objArray = new object[1];
				objArray[0] = policy;
				DebugLog.PolicyEngineTraceLog.Assert(flag, "Parser did not successfully parse policy data: '{0}'", objArray);
				object[] objArray1 = new object[1];
				objArray1[0] = policy;
				DebugLog.PolicyEngineTraceLog.Assert(policyLanguageParser.Policy != null, "Parser returned null policy after parsing policy data: '{0}'", objArray1);
				policyLanguageParser.Policy.Validate();
				this._rules = policyLanguageParser.Policy.Rules;
			}
		}
示例#6
0
		public PolicyRuleSet()
		{
			this._rules = new NonNullableCollection<Rule>();
		}
示例#7
0
		public SelectionCondition()
		{
			this._conditions = new NonNullableCollection<ClaimCondition>();
		}