Skip to content

Instantly share code, notes, and snippets.

@matteobaccan
Last active November 11, 2019 22:30
Show Gist options
  • Save matteobaccan/677bf9832dd4e81b732a75d40bd0660c to your computer and use it in GitHub Desktop.
Save matteobaccan/677bf9832dd4e81b732a75d40bd0660c to your computer and use it in GitHub Desktop.
Test Dictionary class in c#
/**
* Dictionary Test
*/
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
namespace test {
class Program {
static private readonly Dictionary<string,string> _valid = new Dictionary<string,string>{
{"one","prrr"},
{"two","gulp"}
};
static void Main(string[] args) {
Console.WriteLine( _valid.ContainsValue("gulp") );
}
}
}
::SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v2.0.50727\
SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\
::SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v3.5
csc test.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment