System.Data.SqlTypes.SqlByte.ToSqlMoney C# (CSharp) Method

ToSqlMoney() public method

public ToSqlMoney ( ) : SqlMoney
return SqlMoney
        public SqlMoney ToSqlMoney()
        {
            return this;
        }

Usage Example

Example #1
0
		public void ToSqlMoney()
		{

			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);

			Assert.AreEqual(12.0000M, TestByte12.ToSqlMoney().Value, "ToSqMoney method 1" + Error);
			Assert.AreEqual((decimal)0, TestByte0.ToSqlMoney().Value, "ToSqlMoney method 2" + Error);
			Assert.AreEqual(228.0000M, TestByte228.ToSqlMoney().Value, "ToSqlMoney method 3" + Error);
		}
All Usage Examples Of System.Data.SqlTypes.SqlByte::ToSqlMoney