1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace SimpleModel
{
using System;
using System.Globalization;
public class NumberForLinq : BaseTypeForLinq
{
public NumberForLinq()
{
}
public NumberForLinq(int value, string name)
{
Value = value;
Name = name;
}
public int Value { get; set; }
public string Name { get; set; }
public override string ToString()
{
return String.Format(CultureInfo.InvariantCulture, "ID: {0}, Value: {1}, Name: {2}", Id, Value, Name);
}
}
}
|