option-strict
VB.NET not seeing some classes
One of my classes seems to be invisible to the rest of my project. I wonder if I somehow have to initialize it before I can use its public s开发者_运维知识库tuff.[详细]
2023-03-13 19:29 分类:问答how to use Option Strict On and Late Binding
I am trying to get some code to compile after switching Option Strict On. However I am usin开发者_开发百科g some Interop with VB6 and passing in a form object ByRef so Form.Caption fails and I can\'t[详细]
2023-03-13 14:10 分类:问答Option Strict on by default in VB.NET
Whenever I created a new VB.NET program I must go into the project\'s properties and set \'Option strict\' on. Can I do that once so it is a default for every开发者_如何学Go time I create a new projec[详细]
2023-02-14 17:54 分类:问答VB.NET: Which As clause to use with anonymous type with Option Strict On?
Consider the requirement to always declare Option Strict On. We\'ll always need to declare variables with the As keyword. What would be the type of an an开发者_开发百科onymous type?[详细]
2023-01-11 12:51 分类:问答VB.NET equivalent for C# 'dynamic' with Option Strict On
Is there an equivalent for the C# 4 \'dynamic\' keyword when using type safe VB.NET, i.e. w开发者_JAVA百科ith Option Strict On?The equivalent is Object in VB.NET but with Option Strict Off. With Optio[详细]
2022-12-31 01:59 分类:问答What do Option Strict and Option Explicit do?
I saw this post: Typos…Just use option strict and explicit please..during one software development project, which I was on as a consultant, they were getting ridiculous amounts of errors everywhere[详细]
2022-12-22 21:50 分类:问答Limiting strict off VB.NET
Hi I am exploring ways to implement something Visitor Patterns alike without all the decorating visit methods. Sofar I found out I could use Option Strict Off in VB.NET but it has some side effects. I[详细]
2022-12-10 03:26 分类:问答