Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / CodeBlockBuilder.cs / 1 / CodeBlockBuilder.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* Handle <%= ... %>, <% ... %> and <%# ... %> blocks
*
* Copyright (c) 1998 Microsoft Corporation
*/
namespace System.Web.UI {
using System;
using System.IO;
internal class CodeBlockBuilder : ControlBuilder {
protected CodeBlockType _blockType;
protected string _content;
private int _column;
internal CodeBlockBuilder(CodeBlockType blockType, string content, int lineNumber, int column, VirtualPath virtualPath) {
_content = content;
_blockType = blockType;
_column = column;
Line = lineNumber;
VirtualPath = virtualPath;
}
public override object BuildObject() {
return null;
}
internal /*public*/ string Content {
get {
return _content;
}
}
internal /*public*/ CodeBlockType BlockType {
get { return _blockType;}
}
internal int Column { get { return _column; } }
}
internal enum CodeBlockType {
Code, // <% ... %>
Expression, // <%= ... %>
DataBinding // <%# ... %>
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* Handle <%= ... %>, <% ... %> and <%# ... %> blocks
*
* Copyright (c) 1998 Microsoft Corporation
*/
namespace System.Web.UI {
using System;
using System.IO;
internal class CodeBlockBuilder : ControlBuilder {
protected CodeBlockType _blockType;
protected string _content;
private int _column;
internal CodeBlockBuilder(CodeBlockType blockType, string content, int lineNumber, int column, VirtualPath virtualPath) {
_content = content;
_blockType = blockType;
_column = column;
Line = lineNumber;
VirtualPath = virtualPath;
}
public override object BuildObject() {
return null;
}
internal /*public*/ string Content {
get {
return _content;
}
}
internal /*public*/ CodeBlockType BlockType {
get { return _blockType;}
}
internal int Column { get { return _column; } }
}
internal enum CodeBlockType {
Code, // <% ... %>
Expression, // <%= ... %>
DataBinding // <%# ... %>
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompilerState.cs
- AdornerHitTestResult.cs
- PeerInvitationResponse.cs
- PreviewPrintController.cs
- TreeSet.cs
- control.ime.cs
- ToolStripItemImageRenderEventArgs.cs
- CollectionEditVerbManager.cs
- QueryableDataSourceView.cs
- ChannelSinkStacks.cs
- WebColorConverter.cs
- DataColumnPropertyDescriptor.cs
- PeerNameRecord.cs
- DataGridRelationshipRow.cs
- WsdlExporter.cs
- SessionStateModule.cs
- IndentedTextWriter.cs
- Invariant.cs
- DictionaryManager.cs
- UriTemplateTrieNode.cs
- DoubleLink.cs
- SimpleType.cs
- RowSpanVector.cs
- JobStaple.cs
- QueryGeneratorBase.cs
- TextRunCacheImp.cs
- HwndStylusInputProvider.cs
- COM2ExtendedBrowsingHandler.cs
- SerializableAttribute.cs
- GridProviderWrapper.cs
- XamlFigureLengthSerializer.cs
- WebBrowserContainer.cs
- WindowsFormsHostAutomationPeer.cs
- SourceSwitch.cs
- DataTablePropertyDescriptor.cs
- ProfileService.cs
- GenericAuthenticationEventArgs.cs
- HostingEnvironmentSection.cs
- Brush.cs
- ServiceCredentialsSecurityTokenManager.cs
- MonitoringDescriptionAttribute.cs
- FixedNode.cs
- InheritanceContextHelper.cs
- TextUtf8RawTextWriter.cs
- HtmlInputText.cs
- WindowsListBox.cs
- RelativeSource.cs
- InvalidOperationException.cs
- WebPartTransformerAttribute.cs
- XmlDeclaration.cs
- BinaryWriter.cs
- WinFormsSecurity.cs
- SingleConverter.cs
- ISO2022Encoding.cs
- PersonalizationAdministration.cs
- LongMinMaxAggregationOperator.cs
- RecordBuilder.cs
- PersonalizableAttribute.cs
- CustomErrorsSection.cs
- DependencyObjectValidator.cs
- FilterableAttribute.cs
- WebPartVerb.cs
- ColorContext.cs
- XmlSchemaGroupRef.cs
- ChildDocumentBlock.cs
- UmAlQuraCalendar.cs
- CqlParser.cs
- TypeExtensions.cs
- MarkupObject.cs
- ObjectViewEntityCollectionData.cs
- ReferenceEqualityComparer.cs
- DataView.cs
- RotateTransform3D.cs
- Italic.cs
- EpmTargetTree.cs
- SettingsProperty.cs
- PipelineModuleStepContainer.cs
- Parameter.cs
- ReferenceSchema.cs
- WS2007FederationHttpBinding.cs
- ObjectToIdCache.cs
- OrderPreservingSpoolingTask.cs
- DataGridViewButtonCell.cs
- WebPartVerb.cs
- DateTimeEditor.cs
- TraceXPathNavigator.cs
- TerminatingOperationBehavior.cs
- BaseValidator.cs
- PropertyPushdownHelper.cs
- StringArrayConverter.cs
- MergablePropertyAttribute.cs
- RowParagraph.cs
- VoiceObjectToken.cs
- PtsHost.cs
- InheritablePropertyChangeInfo.cs
- DependencyPropertyDescriptor.cs
- XPathAncestorIterator.cs
- CompositeCollectionView.cs
- SqlServer2KCompatibilityCheck.cs
- DbProviderManifest.cs