Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ExpressionBinding.cs / 1305376 / 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; ////// 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; ////// 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
- InternalResources.cs
- ToolStripControlHost.cs
- ToolStripPanel.cs
- ConnectionPointCookie.cs
- ObjectKeyFrameCollection.cs
- BinaryConverter.cs
- BaseTemplateParser.cs
- MultiDataTrigger.cs
- LocalizableAttribute.cs
- ColumnResizeAdorner.cs
- ValidationErrorEventArgs.cs
- ScrollBar.cs
- DSASignatureFormatter.cs
- RoutedCommand.cs
- DBDataPermissionAttribute.cs
- TCPListener.cs
- XsltFunctions.cs
- SequenceDesigner.xaml.cs
- WebHeaderCollection.cs
- EpmSourcePathSegment.cs
- PropertyChangedEventArgs.cs
- Journaling.cs
- RC2.cs
- DesignerSerializationVisibilityAttribute.cs
- AssemblyNameUtility.cs
- DataSourceControlBuilder.cs
- BindingManagerDataErrorEventArgs.cs
- OutputCacheSettingsSection.cs
- KnownBoxes.cs
- InputEventArgs.cs
- MulticastDelegate.cs
- QilChoice.cs
- XamlFilter.cs
- StrokeSerializer.cs
- EdmPropertyAttribute.cs
- XmlEnumAttribute.cs
- _NetworkingPerfCounters.cs
- documentsequencetextcontainer.cs
- ConnectionStringSettingsCollection.cs
- XamlStyleSerializer.cs
- TextTreeTextNode.cs
- HttpProcessUtility.cs
- ScrollBarRenderer.cs
- ContextBase.cs
- ToolStripRenderEventArgs.cs
- BindingExpressionUncommonField.cs
- ConfigXmlWhitespace.cs
- XmlReflectionImporter.cs
- ToolZone.cs
- EmptyControlCollection.cs
- XmlValidatingReader.cs
- ProfessionalColorTable.cs
- streamingZipPartStream.cs
- XmlDocumentFragment.cs
- StateMachineAction.cs
- TaskScheduler.cs
- UIElement3D.cs
- DateTimeFormatInfoScanner.cs
- TimerEventSubscriptionCollection.cs
- CompressEmulationStream.cs
- CompiledQueryCacheKey.cs
- ZipIOLocalFileDataDescriptor.cs
- IdentifierElement.cs
- DoubleIndependentAnimationStorage.cs
- connectionpool.cs
- Translator.cs
- DirectoryNotFoundException.cs
- CopyOnWriteList.cs
- ToolboxBitmapAttribute.cs
- XmlEventCache.cs
- ListCollectionView.cs
- TimeoutValidationAttribute.cs
- DataControlHelper.cs
- TransformationRules.cs
- XmlSchemaImporter.cs
- Collection.cs
- MetadataItemSerializer.cs
- XmlNamespaceManager.cs
- SqlRowUpdatedEvent.cs
- PackageRelationshipCollection.cs
- CombinedGeometry.cs
- PinnedBufferMemoryStream.cs
- ForeignKeyConstraint.cs
- ReadOnlyMetadataCollection.cs
- LocatorManager.cs
- DataTableTypeConverter.cs
- SqlDataSourceEnumerator.cs
- GridViewDesigner.cs
- DateTimeFormat.cs
- EndpointIdentityConverter.cs
- StandardTransformFactory.cs
- JpegBitmapEncoder.cs
- SchemaCreator.cs
- StretchValidation.cs
- GridLength.cs
- SqlCrossApplyToCrossJoin.cs
- Scene3D.cs
- FixedDocument.cs
- Point4DConverter.cs
- HighlightVisual.cs