예제 #1
0
                public static TcpServer FromBaseObject(BaseObject baseObj)
                {
                    if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
                    {
                        return(null);
                    }
                    TcpServer obj = baseObj as  TcpServer;

                    if (object.Equals(obj, null))
                    {
                        obj = new TcpServer(CreatedWhenConstruct.CWC_NotToCreate);
                        obj.BindNativeObject(baseObj.NativeObject, "CTcpServer");
                        obj.IncreaseCast();
                    }

                    return(obj);
                }