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. Web Development
  3. ASP.NET
  4. vb.net to c#

vb.net to c#

Scheduled Pinned Locked Moved ASP.NET
csharplounge
5 Posts 4 Posters 0 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    How should i convert the following in the c# Dim CurrentAdvice As Integer = New Random().Next(0, 9)

    Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

    S C N 3 Replies Last reply
    0
    • S Sonia Gupta

      How should i convert the following in the c# Dim CurrentAdvice As Integer = New Random().Next(0, 9)

      Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

      S Offline
      S Offline
      sulabh2020
      wrote on last edited by
      #2

      int CurrentAdvice; Random ra = new Random(CurrentAdvice).Next(0, 9);

      Hello Forum Always be in touch to help about the topic ASP.NET

      C 1 Reply Last reply
      0
      • S Sonia Gupta

        How should i convert the following in the c# Dim CurrentAdvice As Integer = New Random().Next(0, 9)

        Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        Sonia Gupta wrote:

        Dim CurrentAdvice As Integer = New Random().Next(0, 9)

        int CurrentAdvice = new Random().Next(0, 9);

        Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * Aarrgghh!! Accidentally pressing the Caps Lock key My website | blog

        1 Reply Last reply
        0
        • S sulabh2020

          int CurrentAdvice; Random ra = new Random(CurrentAdvice).Next(0, 9);

          Hello Forum Always be in touch to help about the topic ASP.NET

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          sulabh2020 wrote:

          int CurrentAdvice; Random ra = new Random(CurrentAdvice).Next(0, 9);

          That is not equivalent to the code posted.

          Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * Aarrgghh!! Accidentally pressing the Caps Lock key My website | blog

          1 Reply Last reply
          0
          • S Sonia Gupta

            How should i convert the following in the c# Dim CurrentAdvice As Integer = New Random().Next(0, 9)

            Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

            N Offline
            N Offline
            neerubee
            wrote on last edited by
            #5

            There are many converters are available in online, either vb.net to C# or C# to vb.net. Search in google. All the best!

            Thanks & Regards Niranjan

            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