Beispiel #1
0
 public static IPInfo GetIPInfo(IPsource source = IPsource.Shell)
 {
     switch (source)
     {
         case IPsource.Shell:
             return GetIPInfoFromShell();
         case IPsource.FrameWork:
             return GetIPInfoFromFrameWork();
         default:
             return new IPInfo();
     }
 }
Beispiel #2
0
        static public IPInfo GetIPInfo(IPsource source = IPsource.Shell)
        {
            switch (source)
            {
            case IPsource.Shell:
                return(GetIPInfoFromShell());

            case IPsource.FrameWork:
                return(GetIPInfoFromFrameWork());

            default:
                return(new IPInfo());
            }
        }