using System;
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static void Main()
List<test> a = new List<test>();
a.Add(new test(1));
a.Add(new test(1.10M));
a.Add(new test(1.20M));
a.Add(new test(2));
a.Add(new test(2.10M));
a.Add(new test(2.20M));
foreach(var n in a.Where(x => x.number % 1 == 0)) {
Console.WriteLine(n.number);
}
public class test {
public decimal number {get;set;}
public test(decimal n) {
number = n;