Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Compilation / ExpressionBuilderContext.cs / 1305376 / ExpressionBuilderContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System; using System.Security.Permissions; using System.Web.UI; public sealed class ExpressionBuilderContext { // private TemplateControl _templateControl; private VirtualPath _virtualPath; internal ExpressionBuilderContext(VirtualPath virtualPath) { _virtualPath = virtualPath; } public ExpressionBuilderContext(string virtualPath) { _virtualPath = System.Web.VirtualPath.Create(virtualPath); } public ExpressionBuilderContext(TemplateControl templateControl) { _templateControl = templateControl; } public TemplateControl TemplateControl { get { return _templateControl; } } public string VirtualPath { get { if (_virtualPath == null && _templateControl != null) { return _templateControl.AppRelativeVirtualPath; } return System.Web.VirtualPath.GetVirtualPathString(_virtualPath); } } internal VirtualPath VirtualPathObject { get { if (_virtualPath == null && _templateControl != null) return _templateControl.VirtualPath; return _virtualPath; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System; using System.Security.Permissions; using System.Web.UI; public sealed class ExpressionBuilderContext { // private TemplateControl _templateControl; private VirtualPath _virtualPath; internal ExpressionBuilderContext(VirtualPath virtualPath) { _virtualPath = virtualPath; } public ExpressionBuilderContext(string virtualPath) { _virtualPath = System.Web.VirtualPath.Create(virtualPath); } public ExpressionBuilderContext(TemplateControl templateControl) { _templateControl = templateControl; } public TemplateControl TemplateControl { get { return _templateControl; } } public string VirtualPath { get { if (_virtualPath == null && _templateControl != null) { return _templateControl.AppRelativeVirtualPath; } return System.Web.VirtualPath.GetVirtualPathString(_virtualPath); } } internal VirtualPath VirtualPathObject { get { if (_virtualPath == null && _templateControl != null) return _templateControl.VirtualPath; return _virtualPath; } } } } // 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
- OdbcFactory.cs
- RangeValuePattern.cs
- IsolatedStorageFile.cs
- TypedAsyncResult.cs
- RequestTimeoutManager.cs
- securitycriticaldataformultiplegetandset.cs
- CodeTypeMember.cs
- BaseServiceProvider.cs
- InstalledFontCollection.cs
- CodeIdentifiers.cs
- EntityViewGenerator.cs
- ProtocolsConfigurationHandler.cs
- AppLevelCompilationSectionCache.cs
- AsyncPostBackErrorEventArgs.cs
- BaseParser.cs
- InvokeHandlers.cs
- HandlerBase.cs
- Span.cs
- TypeNameConverter.cs
- SQLString.cs
- MimeTextImporter.cs
- MemberProjectedSlot.cs
- ConnectionPoint.cs
- SqlCommandSet.cs
- CodeTypeReferenceExpression.cs
- XmlLoader.cs
- RoleGroup.cs
- SqlBuilder.cs
- EventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- DocumentViewer.cs
- ThicknessAnimationBase.cs
- UpdateException.cs
- FormatterServices.cs
- Events.cs
- ScalarOps.cs
- AttachedAnnotation.cs
- ProxySimple.cs
- FloatMinMaxAggregationOperator.cs
- TemplateControlCodeDomTreeGenerator.cs
- TableRow.cs
- TabControl.cs
- SiteMapPathDesigner.cs
- ClientSideQueueItem.cs
- BamlMapTable.cs
- DbProviderConfigurationHandler.cs
- CqlWriter.cs
- Rect3D.cs
- Part.cs
- DirectoryNotFoundException.cs
- CatalogPartChrome.cs
- CornerRadius.cs
- nulltextcontainer.cs
- RowTypePropertyElement.cs
- CrossAppDomainChannel.cs
- ManagedWndProcTracker.cs
- Identity.cs
- ToolStripSplitStackLayout.cs
- SqlBuffer.cs
- baseaxisquery.cs
- Win32SafeHandles.cs
- XmlParserContext.cs
- HiddenFieldPageStatePersister.cs
- EntityDataSourceChangedEventArgs.cs
- activationcontext.cs
- ProcessProtocolHandler.cs
- ColumnMapCopier.cs
- ConfigurationElementCollection.cs
- SafeProcessHandle.cs
- PropertySegmentSerializationProvider.cs
- OrderedDictionary.cs
- SettingsPropertyNotFoundException.cs
- OrderPreservingPipeliningSpoolingTask.cs
- webeventbuffer.cs
- ServicePoint.cs
- ControllableStoryboardAction.cs
- PropertyGroupDescription.cs
- SHA1.cs
- EntitySqlException.cs
- ContainerUIElement3D.cs
- SecUtil.cs
- UrlPath.cs
- SafeHGlobalHandleCritical.cs
- HandleCollector.cs
- MonthCalendar.cs
- DocumentGrid.cs
- Relationship.cs
- InkCanvasAutomationPeer.cs
- TransformValueSerializer.cs
- PrincipalPermission.cs
- TagPrefixAttribute.cs
- ImageCreator.cs
- DataSourceComponent.cs
- PrintPreviewGraphics.cs
- IsolatedStorage.cs
- WSDualHttpBindingCollectionElement.cs
- SR.cs
- AnonymousIdentificationSection.cs
- LayoutEditorPart.cs
- Size.cs