using System.Collections.Generic;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO.Compression;
public static class Constants
public const string ExceptionMessageKey = "UI Error Message";
public static void Test()
Exception ex = new Exception("Datebase error");
ex.Data.Add(Constants.ExceptionMessageKey, "Whoops! Something went wrong there. Please call (555)555-5555 " +
"and notify them something is wrong with the Encounter Reason: " + ReasonCodeID);
string text = ex.Data[Constants.ExceptionMessageKey]?.ToString();
string text2 = ex.Data["wrong key"]?.ToString();
Console.WriteLine(text2);
public static void Main()
Console.WriteLine("Roslyn 2.0 Compiler; Environment version: " + Environment.Version);
Console.WriteLine("Uncaught exception: ");