Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PropertyChangedEventManager.cs
- AddressAccessDeniedException.cs
- PrefixQName.cs
- EdmItemCollection.OcAssemblyCache.cs
- WebPartZoneBaseDesigner.cs
- InheritanceService.cs
- DescendentsWalker.cs
- OdbcConnectionOpen.cs
- CompositeKey.cs
- DefaultValueAttribute.cs
- RandomNumberGenerator.cs
- FieldReference.cs
- DataListItemEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- EventMappingSettingsCollection.cs
- ResponseStream.cs
- DataGridViewRowPrePaintEventArgs.cs
- DebugView.cs
- DbDataSourceEnumerator.cs
- DataListItemEventArgs.cs
- GradientSpreadMethodValidation.cs
- DictionaryGlobals.cs
- XamlInterfaces.cs
- ProfileSettings.cs
- _SslSessionsCache.cs
- XmlEventCache.cs
- FixedPage.cs
- VirtualizedItemPattern.cs
- HttpCapabilitiesSectionHandler.cs
- ConnectionManagementElement.cs
- SimpleTypeResolver.cs
- AuthenticationModulesSection.cs
- NamedPipeWorkerProcess.cs
- TextControl.cs
- StagingAreaInputItem.cs
- StreamAsIStream.cs
- PersistStreamTypeWrapper.cs
- String.cs
- DefaultObjectMappingItemCollection.cs
- validationstate.cs
- CacheModeValueSerializer.cs
- HuffmanTree.cs
- VectorKeyFrameCollection.cs
- RoleManagerModule.cs
- ProfileManager.cs
- IPAddress.cs
- ReflectionServiceProvider.cs
- RepeaterDataBoundAdapter.cs
- VisualCollection.cs
- FileLoadException.cs
- Registry.cs
- MenuAdapter.cs
- GlyphRun.cs
- SmiMetaData.cs
- XmlHierarchicalEnumerable.cs
- AssociatedControlConverter.cs
- TdsParserSessionPool.cs
- XPathEmptyIterator.cs
- HandleCollector.cs
- DeviceFilterDictionary.cs
- XmlDownloadManager.cs
- PointLightBase.cs
- XPathSelectionIterator.cs
- SQLDateTime.cs
- Debugger.cs
- ListViewGroupItemCollection.cs
- LineSegment.cs
- RelatedView.cs
- XmlComplianceUtil.cs
- HttpRequestCacheValidator.cs
- Attributes.cs
- PropertyValueEditor.cs
- xdrvalidator.cs
- FileLevelControlBuilderAttribute.cs
- ClientSession.cs
- CodeArgumentReferenceExpression.cs
- PathFigureCollection.cs
- MenuItemCollectionEditor.cs
- OciLobLocator.cs
- ReadOnlyCollectionBuilder.cs
- SecureConversationSecurityTokenParameters.cs
- TreeNodeMouseHoverEvent.cs
- PerformanceCountersBase.cs
- OleDbException.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- SvcMapFileLoader.cs
- LocatorPart.cs
- BitVector32.cs
- ConfigurationSectionCollection.cs
- ReplacementText.cs
- DynamicILGenerator.cs
- GreaterThan.cs
- PointConverter.cs
- SqlConnectionHelper.cs
- DefaultObjectMappingItemCollection.cs
- MetadataArtifactLoaderFile.cs
- ObjectTag.cs
- EntityConnectionStringBuilderItem.cs
- RTLAwareMessageBox.cs
- WebContext.cs