예제 #1
0
        public static NetworkWrapper Wrap(this Net net)
        {
            if (wrapperCache == null)
            {
                wrapperCache = new NetworkWrapper(net);
            }

            return(wrapperCache);
        }
예제 #2
0
        public static NetworkWrapper Wrap(this Net net)
        {
            if (wrapperCache == null)
            {
                var w = new NetworkWrapper(net);
                wrapperCache = w;
                return w;
            }

            return wrapperCache;
        }