Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / ExpressionBinding.cs / 1 / ExpressionBinding.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Globalization; using System.Security.Permissions; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionBinding { private string _propertyName; private Type _propertyType; private string _expression; private string _expressionPrefix; private bool _generated; private object _parsedExpressionData; public ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression) : this(propertyName, propertyType, expressionPrefix, expression, false, null) { } ////// internal ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression, bool generated, object parsedExpressionData) { _propertyName = propertyName; _propertyType = propertyType; _expression = expression; _expressionPrefix = expressionPrefix; _generated = generated; _parsedExpressionData = parsedExpressionData; } ////// public string Expression { get { return _expression; } set { _expression = value; } } ////// G public string ExpressionPrefix { get { return _expressionPrefix; } set { _expressionPrefix = value; } } public bool Generated { get { return _generated; } } public object ParsedExpressionData { get { return _parsedExpressionData; } } ////// public string PropertyName { get { return _propertyName; } } ////// public Type PropertyType { get { return _propertyType; } } ////// public override int GetHashCode() { return _propertyName.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } ////// public override bool Equals(object obj) { if ((obj != null) && (obj is ExpressionBinding)) { ExpressionBinding binding = (ExpressionBinding)obj; return StringUtil.EqualsIgnoreCase(_propertyName, binding.PropertyName); } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Globalization; using System.Security.Permissions; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionBinding { private string _propertyName; private Type _propertyType; private string _expression; private string _expressionPrefix; private bool _generated; private object _parsedExpressionData; public ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression) : this(propertyName, propertyType, expressionPrefix, expression, false, null) { } ////// internal ExpressionBinding(string propertyName, Type propertyType, string expressionPrefix, string expression, bool generated, object parsedExpressionData) { _propertyName = propertyName; _propertyType = propertyType; _expression = expression; _expressionPrefix = expressionPrefix; _generated = generated; _parsedExpressionData = parsedExpressionData; } ////// public string Expression { get { return _expression; } set { _expression = value; } } ////// G public string ExpressionPrefix { get { return _expressionPrefix; } set { _expressionPrefix = value; } } public bool Generated { get { return _generated; } } public object ParsedExpressionData { get { return _parsedExpressionData; } } ////// public string PropertyName { get { return _propertyName; } } ////// public Type PropertyType { get { return _propertyType; } } ////// public override int GetHashCode() { return _propertyName.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } ////// public override bool Equals(object obj) { if ((obj != null) && (obj is ExpressionBinding)) { ExpressionBinding binding = (ExpressionBinding)obj; return StringUtil.EqualsIgnoreCase(_propertyName, binding.PropertyName); } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RSAPKCS1SignatureDeformatter.cs
- ReachFixedPageSerializer.cs
- EdmValidator.cs
- DataGridViewCellConverter.cs
- LayoutTableCell.cs
- ADConnectionHelper.cs
- GregorianCalendar.cs
- IDataContractSurrogate.cs
- SuppressIldasmAttribute.cs
- TransformerInfoCollection.cs
- DataControlPagerLinkButton.cs
- ImplicitInputBrush.cs
- TransactionManager.cs
- GridViewRowPresenter.cs
- Soap.cs
- XmlUtilWriter.cs
- DefaultTextStoreTextComposition.cs
- ContextInformation.cs
- UrlMappingsSection.cs
- WebControlToolBoxItem.cs
- XmlSchemaComplexContentExtension.cs
- SerialErrors.cs
- SecurityUtils.cs
- Pen.cs
- SessionState.cs
- WebPartConnection.cs
- Int32Storage.cs
- HelpEvent.cs
- FacetDescriptionElement.cs
- AttributedMetaModel.cs
- EventProviderWriter.cs
- Italic.cs
- SourceChangedEventArgs.cs
- InternalControlCollection.cs
- XmlSchemaNotation.cs
- DecimalConstantAttribute.cs
- SplitterEvent.cs
- DbParameterHelper.cs
- AnimatedTypeHelpers.cs
- DirectoryNotFoundException.cs
- DataGridAddNewRow.cs
- UDPClient.cs
- EmptyControlCollection.cs
- WindowsGraphicsCacheManager.cs
- BufferedReadStream.cs
- Utils.cs
- SignatureDescription.cs
- SplineKeyFrames.cs
- XmlRawWriter.cs
- ItemsControlAutomationPeer.cs
- KnownAssembliesSet.cs
- ThreadAttributes.cs
- X509CertificateStore.cs
- RegexParser.cs
- ThaiBuddhistCalendar.cs
- HtmlWindowCollection.cs
- MouseWheelEventArgs.cs
- DataGridRowAutomationPeer.cs
- errorpatternmatcher.cs
- RectangleHotSpot.cs
- IIS7ConfigurationLoader.cs
- HttpCachePolicyElement.cs
- ValueOfAction.cs
- HTMLTextWriter.cs
- ActivityExecutorDelegateInfo.cs
- ModuleElement.cs
- DoubleAnimationUsingPath.cs
- DataGridCell.cs
- StaticSiteMapProvider.cs
- GeneralTransform3D.cs
- LinqDataSourceContextEventArgs.cs
- GcHandle.cs
- CompModSwitches.cs
- _AcceptOverlappedAsyncResult.cs
- TextBreakpoint.cs
- EnumValAlphaComparer.cs
- BitStack.cs
- HttpDictionary.cs
- WithParamAction.cs
- CodeExporter.cs
- KeyConstraint.cs
- StateFinalizationDesigner.cs
- TreeWalkHelper.cs
- designeractionbehavior.cs
- ThemeDirectoryCompiler.cs
- GestureRecognitionResult.cs
- DragStartedEventArgs.cs
- ProfileServiceManager.cs
- DataRecordObjectView.cs
- Token.cs
- PackageStore.cs
- HashMembershipCondition.cs
- ObjectDataSourceFilteringEventArgs.cs
- EventLogPermissionEntryCollection.cs
- RotateTransform.cs
- RenderData.cs
- XmlWrappingReader.cs
- RemoteHelper.cs
- NotSupportedException.cs
- SrgsGrammar.cs