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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Classes

Classes

Scheduled Pinned Locked Moved ASP.NET
question
5 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.
  • T Offline
    T Offline
    Taurian110
    wrote on last edited by
    #1

    If I create a class "SClass" within a namespace "SecurityClass", so to say, how can I use that particular "SClass" class in another name space? Or should I say Can I use that class in another namespace other then what it was created in?

    D 1 Reply Last reply
    0
    • T Taurian110

      If I create a class "SClass" within a namespace "SecurityClass", so to say, how can I use that particular "SClass" class in another name space? Or should I say Can I use that class in another namespace other then what it was created in?

      D Offline
      D Offline
      DELETEUSER
      wrote on last edited by
      #2

      NameSpace.ClassName.MethodName is the way you can do it. OR Using NamespaceName in the start Also depends on your access modifiers (public, private,...) ---------- Venus Patel http://patelsinc.blogspot.com/ A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

      T 2 Replies Last reply
      0
      • D DELETEUSER

        NameSpace.ClassName.MethodName is the way you can do it. OR Using NamespaceName in the start Also depends on your access modifiers (public, private,...) ---------- Venus Patel http://patelsinc.blogspot.com/ A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

        T Offline
        T Offline
        Taurian110
        wrote on last edited by
        #3

        What about making a .dll? is that a recomended way to do this when we might have to use this class quite often or should we use the namespace.classname? I appreciate your reply though, thanks.

        1 Reply Last reply
        0
        • D DELETEUSER

          NameSpace.ClassName.MethodName is the way you can do it. OR Using NamespaceName in the start Also depends on your access modifiers (public, private,...) ---------- Venus Patel http://patelsinc.blogspot.com/ A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

          T Offline
          T Offline
          Taurian110
          wrote on last edited by
          #4

          When I do Namespace.ClassName.Method it gives me the following error: The type or namespace name 'SecurityNmSpc' could not be found (are you missing a using directive or an assembly reference?) I also have a using 'SecurityNmSpc'. Thanks for your help.

          D 1 Reply Last reply
          0
          • T Taurian110

            When I do Namespace.ClassName.Method it gives me the following error: The type or namespace name 'SecurityNmSpc' could not be found (are you missing a using directive or an assembly reference?) I also have a using 'SecurityNmSpc'. Thanks for your help.

            D Offline
            D Offline
            DELETEUSER
            wrote on last edited by
            #5

            Honestly what you want is a book about C# or any .NET language. Follow the link or do a google http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfnamespace.asp[^] ---------- Venus Patel http://patelsinc.blogspot.com/ A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

            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