// C# Extension Method
// Doc: https://csharp-extension.com/en/method/1002382/int16-in
// @nuget: Z.ExtensionMethods
using System;
public class Program
{
public static void Main()
Int16 searchVal = -1277;
Int16[] values = { 32767, 235, 0, -1277, -32767 };
// C# Extension Method: Int16 - In
if(searchVal.In(values))
Console.WriteLine("{0} exists in the list.", searchVal);
}
else
Console.WriteLine("{0} doesn't exists in the list.", searchVal);