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. General Programming
  3. Visual Basic
  4. How can I pass nothing into a constructor as PropertyDescriptor

How can I pass nothing into a constructor as PropertyDescriptor

Scheduled Pinned Locked Moved Visual Basic
helpquestion
3 Posts 2 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.
  • E Offline
    E Offline
    eatwork
    wrote on last edited by
    #1

    Hi, I was wondering if anyone could help me pass "nothing" into a class constructor from the default constructor eg. Public Sub New() MyClass.New(Nothing) End Sub Public Sub New(ByVal prop As PropertyDescriptor) MyBase.New(prop) End Sub Thank you eatwork

    J 1 Reply Last reply
    0
    • E eatwork

      Hi, I was wondering if anyone could help me pass "nothing" into a class constructor from the default constructor eg. Public Sub New() MyClass.New(Nothing) End Sub Public Sub New(ByVal prop As PropertyDescriptor) MyBase.New(prop) End Sub Thank you eatwork

      J Offline
      J Offline
      Joshua Quick
      wrote on last edited by
      #2

      Public Sub New()
      MyClass.New(DirectCast(Nothing, PropertyDescriptor))
      End Sub

      E 1 Reply Last reply
      0
      • J Joshua Quick

        Public Sub New()
        MyClass.New(DirectCast(Nothing, PropertyDescriptor))
        End Sub

        E Offline
        E Offline
        eatwork
        wrote on last edited by
        #3

        Hello Joshua Quick, That worked perfectly. Thank you eatwork

        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