Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CaseInsensitiveHashCodeProvider.cs
- Encoding.cs
- XPathAncestorQuery.cs
- Label.cs
- CryptoProvider.cs
- FormatControl.cs
- ParameterCollection.cs
- CheckPair.cs
- InputMethod.cs
- CellNormalizer.cs
- RuntimeConfig.cs
- StringToken.cs
- WebServiceData.cs
- InfiniteIntConverter.cs
- FormattedText.cs
- BamlWriter.cs
- FontCacheLogic.cs
- DeadCharTextComposition.cs
- HttpModuleAction.cs
- __TransparentProxy.cs
- GenericXmlSecurityTokenAuthenticator.cs
- OdbcReferenceCollection.cs
- PolygonHotSpot.cs
- ProcessProtocolHandler.cs
- TextFormatter.cs
- ParameterToken.cs
- CompareValidator.cs
- DataGridViewCheckBoxCell.cs
- DrawingGroup.cs
- SymmetricKeyWrap.cs
- StagingAreaInputItem.cs
- StorageMappingItemLoader.cs
- ShapeTypeface.cs
- StringValidatorAttribute.cs
- InstanceDescriptor.cs
- TableLayout.cs
- ToolStripInSituService.cs
- PropertyDescriptorGridEntry.cs
- ReferentialConstraint.cs
- MasterPageBuildProvider.cs
- Crc32Helper.cs
- AdornerLayer.cs
- UnsafeNativeMethods.cs
- TrustManagerMoreInformation.cs
- StsCommunicationException.cs
- SignatureConfirmationElement.cs
- InProcStateClientManager.cs
- CellCreator.cs
- CqlIdentifiers.cs
- ElapsedEventArgs.cs
- File.cs
- SystemIPv4InterfaceProperties.cs
- LinqExpressionNormalizer.cs
- Semaphore.cs
- CommandPlan.cs
- XsdBuildProvider.cs
- MonikerHelper.cs
- HtmlTableCell.cs
- UmAlQuraCalendar.cs
- SByteConverter.cs
- ConstraintEnumerator.cs
- tibetanshape.cs
- SqlClientPermission.cs
- DragEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- DirectoryRedirect.cs
- WebPartRestoreVerb.cs
- DecimalConstantAttribute.cs
- BufferedGraphicsManager.cs
- PeoplePickerWrapper.cs
- CorrelationManager.cs
- ViewManagerAttribute.cs
- RangeContentEnumerator.cs
- ScaleTransform3D.cs
- SynchronizationContext.cs
- Rect3DConverter.cs
- ArgumentDirectionHelper.cs
- X509DefaultServiceCertificateElement.cs
- EntityDataSourceValidationException.cs
- ELinqQueryState.cs
- XmlQueryRuntime.cs
- FacetValues.cs
- Int32Rect.cs
- ImageMap.cs
- Filter.cs
- HitTestFilterBehavior.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- TextLine.cs
- QilChoice.cs
- Identifier.cs
- SQLDecimalStorage.cs
- ConsoleEntryPoint.cs
- FixedSOMImage.cs
- SEHException.cs
- DebuggerAttributes.cs
- SortedSet.cs
- TableDetailsCollection.cs
- ColumnResizeUndoUnit.cs
- SerTrace.cs
- DetailsViewCommandEventArgs.cs