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
- ControlParameter.cs
- ConfigurationValidatorBase.cs
- IPAddressCollection.cs
- TableColumnCollectionInternal.cs
- IdentifierCollection.cs
- XmlBinaryReaderSession.cs
- CalendarDay.cs
- RegisteredArrayDeclaration.cs
- OracleCommand.cs
- CalendarTable.cs
- TextDpi.cs
- FilterException.cs
- EnumerableRowCollectionExtensions.cs
- RepeaterCommandEventArgs.cs
- OutOfProcStateClientManager.cs
- ConfigXmlElement.cs
- hebrewshape.cs
- BamlLocalizer.cs
- InkPresenter.cs
- TreeViewDesigner.cs
- DataGridRelationshipRow.cs
- DataGridPagerStyle.cs
- BatchServiceHost.cs
- TabControlEvent.cs
- StreamGeometry.cs
- ContextBase.cs
- SQLByteStorage.cs
- SafeLocalMemHandle.cs
- StylusPointProperties.cs
- ContourSegment.cs
- EditorPart.cs
- ContainerCodeDomSerializer.cs
- BaseCodePageEncoding.cs
- EntityDataSourceSelectingEventArgs.cs
- DeploymentSection.cs
- ClaimComparer.cs
- DoubleCollection.cs
- ResourceContainer.cs
- OutputCacheProfileCollection.cs
- DbgUtil.cs
- TextDecorations.cs
- XmlUtilWriter.cs
- AppDomainShutdownMonitor.cs
- MDIClient.cs
- ParamArrayAttribute.cs
- MemoryFailPoint.cs
- MemberProjectedSlot.cs
- DbConnectionStringCommon.cs
- ObjectListGeneralPage.cs
- HintTextMaxWidthConverter.cs
- XmlTextAttribute.cs
- RandomDelaySendsAsyncResult.cs
- shaperfactoryquerycacheentry.cs
- LinkDesigner.cs
- TraceRecord.cs
- ChangePasswordDesigner.cs
- HtmlContainerControl.cs
- TypeLoadException.cs
- XmlSignatureProperties.cs
- XmlSchemaInfo.cs
- ObjectTag.cs
- Utility.cs
- HttpHeaderCollection.cs
- XamlPointCollectionSerializer.cs
- InvalidFilterCriteriaException.cs
- TypeElement.cs
- VoiceChangeEventArgs.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- uribuilder.cs
- SourceElementsCollection.cs
- HttpWrapper.cs
- DesignerForm.cs
- ConstantSlot.cs
- DataViewSettingCollection.cs
- MethodCallTranslator.cs
- InvalidOperationException.cs
- FormViewCommandEventArgs.cs
- ParagraphResult.cs
- ColumnHeader.cs
- PixelFormatConverter.cs
- counter.cs
- WindowsFormsSynchronizationContext.cs
- SettingsSection.cs
- SoapEnumAttribute.cs
- GridViewColumnHeaderAutomationPeer.cs
- DataListDesigner.cs
- FormatConvertedBitmap.cs
- VectorCollection.cs
- _NetworkingPerfCounters.cs
- Activity.cs
- _TLSstream.cs
- SerialPort.cs
- CachedBitmap.cs
- MSAANativeProvider.cs
- ContextStaticAttribute.cs
- RadioButton.cs
- _IPv6Address.cs
- ListViewAutomationPeer.cs
- PropertyFilter.cs
- RedistVersionInfo.cs