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
- CompositeClientFormatter.cs
- ProtectedConfigurationSection.cs
- QuaternionRotation3D.cs
- TdsParserStateObject.cs
- SqlParameterCollection.cs
- Vector3DKeyFrameCollection.cs
- _FtpDataStream.cs
- Enumerable.cs
- Site.cs
- NextPreviousPagerField.cs
- DataSysAttribute.cs
- WSSecurityTokenSerializer.cs
- CapacityStreamGeometryContext.cs
- PrimitiveSchema.cs
- QueryLifecycle.cs
- ListManagerBindingsCollection.cs
- CodePrimitiveExpression.cs
- ControlAdapter.cs
- ParserOptions.cs
- XmlProcessingInstruction.cs
- SystemResources.cs
- FactoryMaker.cs
- NativeMethods.cs
- OdbcConnectionOpen.cs
- NameTable.cs
- LoginUtil.cs
- IDQuery.cs
- BitStack.cs
- RegexRunnerFactory.cs
- RulePatternOps.cs
- SecurityUtils.cs
- DesignerHelpers.cs
- XmlMessageFormatter.cs
- ILGenerator.cs
- OleDbInfoMessageEvent.cs
- COM2EnumConverter.cs
- CatchBlock.cs
- Point3D.cs
- CharStorage.cs
- OciEnlistContext.cs
- ConnectionManagementElementCollection.cs
- HtmlHead.cs
- DynamicDocumentPaginator.cs
- PageCatalogPart.cs
- PassportIdentity.cs
- DefaultValueAttribute.cs
- LockedBorderGlyph.cs
- FormViewModeEventArgs.cs
- OrthographicCamera.cs
- XXXOnTypeBuilderInstantiation.cs
- DataKeyCollection.cs
- XmlSchemaSet.cs
- RuntimeConfigLKG.cs
- DiscoveryDocumentSearchPattern.cs
- PageCodeDomTreeGenerator.cs
- SupportingTokenSpecification.cs
- IImplicitResourceProvider.cs
- UserValidatedEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- OdbcConnectionString.cs
- BinaryUtilClasses.cs
- NotifyIcon.cs
- RegexRunnerFactory.cs
- WsiProfilesElementCollection.cs
- _ListenerAsyncResult.cs
- TouchDevice.cs
- OleCmdHelper.cs
- CreateDataSourceDialog.cs
- StorageMappingItemCollection.cs
- WebUtility.cs
- DrawingGroup.cs
- X509SecurityTokenProvider.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WindowsComboBox.cs
- FillErrorEventArgs.cs
- HMACRIPEMD160.cs
- NotifyCollectionChangedEventArgs.cs
- DaylightTime.cs
- NullRuntimeConfig.cs
- StoreAnnotationsMap.cs
- ExtendedPropertyDescriptor.cs
- NameValueCollection.cs
- PriorityQueue.cs
- Queue.cs
- SelectionItemPattern.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- RtfControlWordInfo.cs
- ControlCachePolicy.cs
- TypeUtils.cs
- PriorityQueue.cs
- PersonalizableAttribute.cs
- DatePickerDateValidationErrorEventArgs.cs
- LateBoundBitmapDecoder.cs
- DataBoundLiteralControl.cs
- LowerCaseStringConverter.cs
- AxDesigner.cs
- WebPartMinimizeVerb.cs
- xmlsaver.cs
- WmfPlaceableFileHeader.cs
- EntityObject.cs