Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / CodeBlockBuilder.cs / 1305376 / CodeBlockBuilder.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* Handle <%= ... %>, <% ... %>, <%# ... %>, <%: ... %> 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, // <%# ... %>
EncodedExpression // <%: ... %>
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* Handle <%= ... %>, <% ... %>, <%# ... %>, <%: ... %> 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, // <%# ... %>
EncodedExpression // <%: ... %>
}
}
// 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
- AsymmetricKeyExchangeDeformatter.cs
- SqlTransaction.cs
- ArrayEditor.cs
- WriteTimeStream.cs
- Header.cs
- VectorAnimationBase.cs
- Button.cs
- SafeViewOfFileHandle.cs
- HighlightOverlayGlyph.cs
- OLEDB_Enum.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlSerializer.cs
- AtomicFile.cs
- CommandLineParser.cs
- XmlSubtreeReader.cs
- InvokeBase.cs
- ListViewCancelEventArgs.cs
- ConnectionProviderAttribute.cs
- SystemUdpStatistics.cs
- ViewBase.cs
- EntityDataSourceChangedEventArgs.cs
- ProxyFragment.cs
- RegexGroupCollection.cs
- ScriptReference.cs
- StylusTip.cs
- WeakHashtable.cs
- ProcessInputEventArgs.cs
- LicenseContext.cs
- KeyboardEventArgs.cs
- Int64Storage.cs
- ICollection.cs
- DeclaredTypeElementCollection.cs
- XmlDataSourceDesigner.cs
- WebPartPersonalization.cs
- MetadataSection.cs
- MenuStrip.cs
- SequentialWorkflowRootDesigner.cs
- XPathQueryGenerator.cs
- EventMappingSettings.cs
- WindowsContainer.cs
- ListBindingHelper.cs
- FormViewPagerRow.cs
- webbrowsersite.cs
- httpapplicationstate.cs
- ItemsControl.cs
- HostProtectionPermission.cs
- CardSpacePolicyElement.cs
- ContentTextAutomationPeer.cs
- FamilyMapCollection.cs
- SqlVisitor.cs
- ImageAutomationPeer.cs
- ClaimTypes.cs
- Enum.cs
- TableCellCollection.cs
- Animatable.cs
- HttpWriter.cs
- NavigatorInput.cs
- SqlLiftWhereClauses.cs
- TraceContext.cs
- UIElement3D.cs
- ResourceSetExpression.cs
- XamlBrushSerializer.cs
- SHA1Managed.cs
- BufferedGraphicsManager.cs
- WasHttpModulesInstallComponent.cs
- RuleValidation.cs
- TextTreeInsertUndoUnit.cs
- AddInDeploymentState.cs
- SingletonInstanceContextProvider.cs
- ListChangedEventArgs.cs
- StyleCollection.cs
- Emitter.cs
- XpsImage.cs
- Tracking.cs
- DefaultBindingPropertyAttribute.cs
- FilterRepeater.cs
- ParseNumbers.cs
- Transform3DCollection.cs
- HtmlShimManager.cs
- FactoryRecord.cs
- MediaElement.cs
- TextOnlyOutput.cs
- PartitionedStream.cs
- Helpers.cs
- WorkflowElementDialog.cs
- IInstanceTable.cs
- Debug.cs
- DesignerActionList.cs
- ExpressionReplacer.cs
- TextBlock.cs
- httpstaticobjectscollection.cs
- SplashScreenNativeMethods.cs
- GenericQueueSurrogate.cs
- StyleSelector.cs
- CollectionView.cs
- OdbcInfoMessageEvent.cs
- LineInfo.cs
- AuthenticationManager.cs
- SQLStringStorage.cs
- xml.cs