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. C#
  4. RegularExpressions

RegularExpressions

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpquestionlearning
4 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.
  • R Offline
    R Offline
    Rohde
    wrote on last edited by
    #1

    Hi! I'm trying out the regular expressions in C# (.NET); but I can't compile my source. The compiler complains about not recognizing "RegularExpressions". Fair enough, I thought. I just need a reference, right? I have "using System.Text.RegularExpressions;" at the top of my file, of course. Problem is I can't add an assembly reference! When trying to I can't find the System.Text.RegularExpressions dll! I actually tried to seach my whole drive for it, and the only one found was in the compact framework and I can't add that one. What am I doing wrong here? PS.: Funny thing is, that the samples folder from the SDK (or maybe the IDE) contains some regular expressions samples with both source and .exe and I can run the .exe without problems (which uses the required dll at runtime)....

    R 1 Reply Last reply
    0
    • R Rohde

      Hi! I'm trying out the regular expressions in C# (.NET); but I can't compile my source. The compiler complains about not recognizing "RegularExpressions". Fair enough, I thought. I just need a reference, right? I have "using System.Text.RegularExpressions;" at the top of my file, of course. Problem is I can't add an assembly reference! When trying to I can't find the System.Text.RegularExpressions dll! I actually tried to seach my whole drive for it, and the only one found was in the compact framework and I can't add that one. What am I doing wrong here? PS.: Funny thing is, that the samples folder from the SDK (or maybe the IDE) contains some regular expressions samples with both source and .exe and I can run the .exe without problems (which uses the required dll at runtime)....

      R Offline
      R Offline
      Rohde
      wrote on last edited by
      #2

      After searching Google groups I found out what to do. I needed to add a reference to System.dll in VS. I was under the impression that the System namespace was referenced by default? :omg:

      B 1 Reply Last reply
      0
      • R Rohde

        After searching Google groups I found out what to do. I needed to add a reference to System.dll in VS. I was under the impression that the System namespace was referenced by default? :omg:

        B Offline
        B Offline
        Blake Coverett
        wrote on last edited by
        #3

        The name of the DLL (or assembly) is completely unrelated to which namespaces the types it implements are in. The 'core' namespaces are spread between mscorlib.dll and System.dll. The most critical ones that are required for even the most basic bootstraping are in mscorlib.dll. This isn't just the System namespace, but Collections, IO, Reflection, Remoting, Serialization, Security, etc. The ones that other things don't depend on as much and hence may never need to be loaded are in System.dll. This includes CodeDom, ComponentModel, Net, RegularExpressions, etc. Don't let the names of the other DLL's fool you either, for example System.Data.dll mostly implements types from the System.Data namespace, but it also implements some types that are in System.Xml and so forth. -Blake

        R 1 Reply Last reply
        0
        • B Blake Coverett

          The name of the DLL (or assembly) is completely unrelated to which namespaces the types it implements are in. The 'core' namespaces are spread between mscorlib.dll and System.dll. The most critical ones that are required for even the most basic bootstraping are in mscorlib.dll. This isn't just the System namespace, but Collections, IO, Reflection, Remoting, Serialization, Security, etc. The ones that other things don't depend on as much and hence may never need to be loaded are in System.dll. This includes CodeDom, ComponentModel, Net, RegularExpressions, etc. Don't let the names of the other DLL's fool you either, for example System.Data.dll mostly implements types from the System.Data namespace, but it also implements some types that are in System.Xml and so forth. -Blake

          R Offline
          R Offline
          Rohde
          wrote on last edited by
          #4

          Thanks a lot - that was a very helpful answer. It clears all up for me. YAY :-D

          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