Skip to content

Instantly share code, notes, and snippets.

@imhameed
Last active August 20, 2021 07:19
Show Gist options
  • Save imhameed/ccd542f151624c6399bd6d5c0f74b085 to your computer and use it in GitHub Desktop.
Save imhameed/ccd542f151624c6399bd6d5c0f74b085 to your computer and use it in GitHub Desktop.
using System;
using System.Net;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
namespace MySingleView
{
public class Application
{
[MethodImpl(MethodImplOptions.NoInlining)]
static string Raise() {
throw new InvalidOperationException("okay");
}
public static string SelectHostName (string name, int port)
{
string result = null;
int failures = 0;
try {
System.Console.WriteLine ("--DEBUG: before");
Raise();
System.Console.WriteLine ("--DEBUG: after");
} catch (Exception e) {
failures++;
}
}
return result;
}
static void Main (string[] args)
{
SelectHostName ("fe80::48d:fb00:89bf:c36c", 49861);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment