上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: Dynamic在通过 dynamic 类型实现的操作中,该类型的作用是绕过编译时类型检查, 改为在运行时解析这些操作。 dynamic 类型简化了对 COM API(例如 Office Automation API)、动态 API(例如 IronPython 库)和 HTML 文档对象模型 (DOM) 的访问。在大多数情况下,dynamic 类型与 object 类型的行为是一样的。 但是,不会用编译器对包含 dynamic 类型表达式的操作进行解析或类型检查。 编译器将有关该操作信息打包在一起,并且该信息以后用于计算运行时操作。 在此过程中,类型 dynamic 的变量会编译到类型 obje 阅读全文
posted @ 2013-05-27 08:43 M守护神 阅读(3719) 评论(0) 推荐(0) 编辑
摘要: 指针类型 在不安全的上下文中,类型可以是指针类型以及值类型或引用类型。指针类型不继承 object,并且指针类型与 object 之间不存在转换。此外,装箱和取消装箱不支持指针。但是,允许在不同指针类型之间以及指针类型与整型之间进行转换。当在同一个声明中声明多个指针时,* 仅与基础类型一起使用,而不是作为每个指针名称的前缀。指针不能指向引用或包含引用的结构,因为即使有指针指向对象引用,该对象引用也可能会被执行垃圾回收。GC 并不注意是否有任何类型的指针指向对象。语法type* identifier;void* identifier; int* p1, p2, p3; int number;i. 阅读全文
posted @ 2013-05-24 08:25 M守护神 阅读(1265) 评论(3) 推荐(0) 编辑
摘要: 类类是 C# 中功能最为强大的数据类型。像结构一样,类也定义了数据类型的数据和行为。然后,程序员可以创建作为此类的实例的对象。与结构不同,类支持继承,而继承是面向对象编程的基础部分。构造函数 构造函数是在创建给定类型的对象时执行的类方法,是在运行时调用的而非编译时,包括实例构造函数和静态构造函数。构造函数与类名相同,且不能有返回值。构造函数链使用this关键字进行串联构造函数调用,可以使用可选参数替代构造函数链,但是可选参数的语法只能在.NET4环境下运行。静态构造函数析构函数(终结器)析构函数用于析构类的实例,重新对象的Finalize()方法。不能在结构中定义析构函数。 只能对类使用析构. 阅读全文
posted @ 2013-05-23 08:41 M守护神 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: 字符串表示文本,即一系列 Unicode 字符。字符串是 Unicode 字符的有序集合,用于表示文本。 String 对象是 System.Char 对象的有序集合,用于表示字符串。 String 对象的值是该有序集合的内容,并且该值是不可变的(即,为只读)。String 对象的最大大小内存中的为 2 GB 或大约 10 亿个字符。关键字 string值范围一组字符解析数值intnumber =Convert.ToInt32(strNumber);格式化保留2位小数bc.FRetailPrice =String.Format("{0:N2}",Convert.ToDeci 阅读全文
posted @ 2013-05-22 08:51 M守护神 阅读(1887) 评论(0) 推荐(0) 编辑
摘要: 页面刷新window.location.reload();跳转指定页面Response.Redirect(Url);返回上一页window.history.back();返回下一页window.history.forward();返回到指定页面window.history.go(index); //... 阅读全文
posted @ 2013-05-21 16:28 M守护神 阅读(883) 评论(1) 推荐(1) 编辑
摘要: 任何一门开发语言都需要数据类型作为其基础根本,就如同自然语言中的文字一般,所以想要掌握一门开发语言就要先了解其中的数据类型,接下来我就谈谈我对.NET的数据类型的了解(开发语言以C#为主)。 数据类型 在C#中数据类型主要可以分为值类型、引用类型和指针类型,以下是一个数据类型的归类表:ValueType数值数据sbyte:-128~127byte:0~255short:-32768~32767ushort:0~65535int:-2147483648~2147483647uint:0~4294967295long:-9223372036854775808~922337203685477... 阅读全文
posted @ 2013-05-21 09:16 M守护神 阅读(3021) 评论(3) 推荐(0) 编辑
摘要: Secure Websockets Setup 安全Websockets设置To allow your clients connecting your Photon Server using secure websockets with ‘wss://…’ please proceed as follows. 允许你的客户端连接你的Photon服务器使用安全websockets。Obtain a SSL certificate. 获取SSL证书For development purposes, you can generate a self-signed SSL certificate. 对. 阅读全文
posted @ 2013-05-15 14:07 M守护神 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: Receiver Groups 接收组Receiver groups are an alternative way to define who receives an event. It’s an option available with Lite’s operationRaiseEvent. 接收组是一个替代的方法来定义接收到的事件,他是一个操作,可能是Lite的RaiseEvent操作Usually, Lite sends your events to everyone else in the same room. With the receiver group parameter f. 阅读全文
posted @ 2013-05-15 14:07 M守护神 阅读(886) 评论(0) 推荐(0) 编辑
摘要: Exception Handling 异常处理With Photon 3.0 the exception handling went through a complete redesign. In previous versions the strategy was to catch all exceptions inside the Photon Framework (photonsocketserver.dll) and log them through a logging facade. This design had several drawbacks: Photon3的异常处理进行. 阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: Firewall Settings 防火墙设置If Photon should be accessible from remote machines (especially through the internet), make sure the Windows Firewall does not block connections. 如果Photon可以访问远程机器,确保Windows防火墙不阻止该连接。To check settings, open the “Windows Firewall” in the Windows Control Panel. Click “Allow a pr. 阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: Calling Operations 调用操作As described in the “Basic Concepts”, operations are Remote Procedure Calls, defined by some Photon Application. 作为基础概念,操作是远程过程调用,由Photon应用程序定义。The client APIs includes a LitePeer class (or similar construct), which provides methods to call operations on the server, because w. 阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(636) 评论(0) 推荐(0) 编辑
摘要: Cached Events 缓存事件Usually, the operationRaiseEventsends your event to anyone else, currently in the same room. Cached events are … cached … and will be sent to joining (new) players when they arrive. 通常,操作RaiseEvent发送你的事件到其他当前游戏房间中的玩家,缓存事件是被缓存的,将被发送给新加入的玩家。Use case: Position updates are sent 10 tim. 阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(908) 评论(0) 推荐(0) 编辑
摘要: Licenses 许可证When starting Photon without a License, it will run with a 20 CCU limitation. You can also get a free License for 100 CCU in our download section. Find more information regarding Licenses below. 当启动Photon没有许可证时,它将运行20CCU。你也可以获得一个免费的许可证有100CCU,下面有更多的关于许可证的信息。Free License 免费许可证Photon can . 阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(2085) 评论(0) 推荐(0) 编辑
摘要: Performance Tips 性能技巧Performance is a vital part for providing a fluid and seamless integration of multiplayer components into your application. So we assembled a list of tips you should keep in mind when developing with Photon. 性能是多层组件与你的应用继承的至关重要的部分,以下是我们的建议。Call Service Regularly 定期调用服务The clien. 阅读全文
posted @ 2013-05-15 14:06 M守护神 阅读(562) 评论(0) 推荐(0) 编辑
摘要: Application - LoadBalancing 负载均衡应用This article explains the server-side implementation of the LoadBalancing application. 本文解释服务端是如何实现LoadBalancing应用程序的。Content 目录Concept 概念Basic Workflow 基本工作流Master Server 主服务器Master: Handling Client Peers 处理客户端用户Master: Handling Game Server Peers 处理游戏服务端用户Game Ser. 阅读全文
posted @ 2013-05-15 14:05 M守护神 阅读(2264) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页