Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Clever Code
  4. No, Visual Studio, you are wrong about that

No, Visual Studio, you are wrong about that

Scheduled Pinned Locked Moved Clever Code
visual-studiohelpcsharpcomregex
7 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jasmine2501
    wrote on last edited by
    #1

    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!

    L F U 3 Replies Last reply
    0
    • J Jasmine2501

      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!

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      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 now

      J 1 Reply Last reply
      0
      • L leppie

        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 now

        J Offline
        J Offline
        Jasmine2501
        wrote on last edited by
        #3

        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!

        L 1 Reply Last reply
        0
        • J Jasmine2501

          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!

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Ahh, I see what you mean :) But that's another overload, Eval(object, string).

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 3 out now

          1 Reply Last reply
          0
          • J Jasmine2501

            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!

            F Offline
            F Offline
            Fiorentino
            wrote on last edited by
            #5

            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?"

            1 Reply Last reply
            0
            • J Jasmine2501

              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!

              U Offline
              U Offline
              usmanehsan
              wrote on last edited by
              #6

              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

              J 1 Reply Last reply
              0
              • U usmanehsan

                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

                J Offline
                J Offline
                Jasmine2501
                wrote on last edited by
                #7

                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!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups