摘要:
You can't have both Edit + Continue (for managed code) and Interop enabled at the same time.
--------------
1. If you want to debug + edit just the C# code, you can use managed-only debugging.
2. If you want to debug + edit just the native C++ code, you can use native-only debugging.
3. If you want to debug both C# and native C++ code (but not edit), you can use interop-debugging.
阅读全文
摘要:
昨天同事跟我说尽量少用try{}catch(),因为比较耗性能, 对于值类型的转型可以用Nullable类型转然后判空, 如: float? size = value as float?; if (size.HasValue) ... 改写后发现原来的功能不工作了,,size始终得不到值,,跟踪后发现value必须为float型才能转型成功。 然而自己平时都是习惯于不显示声明数值... 阅读全文
摘要:
昨天同事跟我说尽量少用try{}catch(),因为比较耗性能, 对于值类型的转型可以用Nullable类型转然后判空, 如: float? size = value as float?; if (size.HasValue) ... 改写后发现原来的功能不工作了,,size始终得不到值,,跟踪后发现value必须为float型才能转型成功。 然而自己平时都是习惯于不显示声明数值的类... 阅读全文