No, Visual Studio, you are wrong about that
-
Visual Studio keeps saying "The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments" - but it doesn't... there is apparently no way to convince VS that it is wrong about this issue... it just doesn't value my take on the subject. return string.IsNullOrEmpty(Eval("Authors")) ? "" : "
"; According to the documentation, Eval returns a "string" (with the small 's') and that is what the function is expecting. I think this is a subtle bug in the compiler... I have done a workaround, but if anyone knows how to fix this, let me know. Otherwise have fun with it... :) EDIT: I jumped the gun... the subtle bug seems to be in the documentation. There's 15 versions of things called "Eval" and intellisense is bringing up the wrong tool-tips. The Eval I'm using returns an Object, but apparently some other one returns a string."Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how! -
Visual Studio keeps saying "The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments" - but it doesn't... there is apparently no way to convince VS that it is wrong about this issue... it just doesn't value my take on the subject. return string.IsNullOrEmpty(Eval("Authors")) ? "" : "
"; According to the documentation, Eval returns a "string" (with the small 's') and that is what the function is expecting. I think this is a subtle bug in the compiler... I have done a workaround, but if anyone knows how to fix this, let me know. Otherwise have fun with it... :) EDIT: I jumped the gun... the subtle bug seems to be in the documentation. There's 15 versions of things called "Eval" and intellisense is bringing up the wrong tool-tips. The Eval I'm using returns an Object, but apparently some other one returns a string."Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how! -
Jasmine2501 wrote:
The Eval I'm using returns an Object, but apparently some other one returns a string.
Eval has no version that returns a string, it is always object.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 3 out nowType it into your ASP.Net page and hover over it. The tooltip will say string.
"Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how! -
Type it into your ASP.Net page and hover over it. The tooltip will say string.
"Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how! -
Visual Studio keeps saying "The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments" - but it doesn't... there is apparently no way to convince VS that it is wrong about this issue... it just doesn't value my take on the subject. return string.IsNullOrEmpty(Eval("Authors")) ? "" : "
"; According to the documentation, Eval returns a "string" (with the small 's') and that is what the function is expecting. I think this is a subtle bug in the compiler... I have done a workaround, but if anyone knows how to fix this, let me know. Otherwise have fun with it... :) EDIT: I jumped the gun... the subtle bug seems to be in the documentation. There's 15 versions of things called "Eval" and intellisense is bringing up the wrong tool-tips. The Eval I'm using returns an Object, but apparently some other one returns a string."Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how!It helps looking at the next error in the list, provided that they are sorted by error number. In such situations it will usually say something like: "Can't convert from type 'x' to 'y'. An explicit cast exists. Are you missing a cast?"
-
Visual Studio keeps saying "The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments" - but it doesn't... there is apparently no way to convince VS that it is wrong about this issue... it just doesn't value my take on the subject. return string.IsNullOrEmpty(Eval("Authors")) ? "" : "
"; According to the documentation, Eval returns a "string" (with the small 's') and that is what the function is expecting. I think this is a subtle bug in the compiler... I have done a workaround, but if anyone knows how to fix this, let me know. Otherwise have fun with it... :) EDIT: I jumped the gun... the subtle bug seems to be in the documentation. There's 15 versions of things called "Eval" and intellisense is bringing up the wrong tool-tips. The Eval I'm using returns an Object, but apparently some other one returns a string."Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how!Please help me i m getting frustrated. when i run my .net application either console or window, after all the compilation process when it comes to execute, there comes a error message warning "application cannot be initialize properly (0x00007) " if you have any idea or notion for aforementioned error,please email me at usmanehsan0613@gmail.com
-
Please help me i m getting frustrated. when i run my .net application either console or window, after all the compilation process when it comes to execute, there comes a error message warning "application cannot be initialize properly (0x00007) " if you have any idea or notion for aforementioned error,please email me at usmanehsan0613@gmail.com
Please post your question with the proper information and in the proper forum. We will need complete error information and probably some sample code to determine the problem. Questions are answered on the forum, not through email. This way the entire community can benefit from the answer.
"Quality Software since 1983!"
See my personal web site for photos, info, and a really weird blog
Want to fly model aircraft? Read my beginner site to find out how!