Hi friends
I want to know what is capture class in C#t.
Thank you
Capture Class In C#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted May 10, 2012, 4:21 AM EDT
Go through this link and Use the console application.. Trace the application(using break points)...
http://msdn.microsoft.com/en-us/library/w9hbw253(v=vs.100)
you ll get better idea...
VulpesRank #55 · 29.2K reputationPosted May 10, 2012, 5:32 AM EDT
However, the Capture class is used in regular expressions and an object of this class represents a single match of a sub-expression (a part of a regular expression enclosed in parentheses). These Capture objects are added to a CaptureCollection and returned by the Match.Captures or Group.Captures properties.
To get a grasp of what this means, I'd study the example in the documentation:
http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.capture.aspx