Be sure to incorporate some type of error-handling strategy to handle the chance of client code passing in an invalid index value.
确保结合某一类型的错误处理策略,以处理万一客户端代码传入无效索引值的情况。
The handle will be created in the application domain that is associated with the heap value, and will become invalid if the application domain gets unloaded.
句柄将在与堆值关联的应用程序域中创建,并且,如果应用程序域被卸载,该句柄将变为无效。
应用推荐