1 // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
2 namespace HtmlAgilityPack
5 /// Represents a fragment of code in a mixed code document.
7 public class MixedCodeDocumentCodeFragment
: MixedCodeDocumentFragment
17 internal MixedCodeDocumentCodeFragment(MixedCodeDocument doc
)
19 base(doc
, MixedCodeDocumentFragmentType
.Code
)
28 /// Gets the fragment code text.
36 _code
= FragmentText
.Substring(Doc
.TokenCodeStart
.Length
,
37 FragmentText
.Length
- Doc
.TokenCodeEnd
.Length
-
38 Doc
.TokenCodeStart
.Length
- 1).Trim();
39 if (_code
.StartsWith("="))
41 _code
= Doc
.TokenResponseWrite
+ _code
.Substring(1, _code
.Length
- 1);
46 set { _code = value; }