コード例 #1
0
ファイル: CSharpEnum.cs プロジェクト: BachelorEric/ModelFirst
		/// <exception cref="BadSyntaxException">
		/// The name does not fit to the syntax.
		/// </exception>
		/// <exception cref="ReservedNameException">
		/// The name is a reserved name.
		/// </exception>
		public override EnumValue AddValue(string declaration)
		{
			EnumValue newValue = new CSharpEnumValue(declaration);

			AddValue(newValue);
			return newValue;
		}
コード例 #2
0
ファイル: CSharpEnum.cs プロジェクト: BachelorEric/ModelFirst
		/// <exception cref="BadSyntaxException">
		/// The name does not fit to the syntax.
		/// </exception>
		/// <exception cref="ReservedNameException">
		/// The name is a reserved name.
		/// </exception>
		public override EnumValue ModifyValue(EnumValue value, string declaration)
		{
			EnumValue newValue = new CSharpEnumValue(declaration);

			if (ChangeValue(value, newValue))
				return newValue;
			else
				return value;
		}