C# Network Functions Utilty