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

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

            return wrapperCache;
        }