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
- _MultipleConnectAsync.cs
- TablePattern.cs
- ScrollContentPresenter.cs
- DrawingBrush.cs
- OrderByBuilder.cs
- XmlArrayItemAttribute.cs
- Point.cs
- Odbc32.cs
- XmlSerializationGeneratedCode.cs
- HttpPostedFile.cs
- ZipFileInfo.cs
- ArrayElementGridEntry.cs
- NameValueConfigurationElement.cs
- ExtendedPropertyDescriptor.cs
- HMAC.cs
- PageParser.cs
- DataGridTableStyleMappingNameEditor.cs
- _CacheStreams.cs
- ExpressionHelper.cs
- RuntimeConfigLKG.cs
- WebZone.cs
- ConfigXmlElement.cs
- MenuItemStyle.cs
- SmtpAuthenticationManager.cs
- PrimitiveDataContract.cs
- ObjectStorage.cs
- oledbmetadatacollectionnames.cs
- HttpBindingExtension.cs
- XamlTreeBuilderBamlRecordWriter.cs
- Choices.cs
- ManualResetEvent.cs
- DockPatternIdentifiers.cs
- BitmapEffectState.cs
- PageAsyncTaskManager.cs
- Rotation3DAnimationBase.cs
- UserPreferenceChangingEventArgs.cs
- NetMsmqBinding.cs
- FontCacheUtil.cs
- OdbcFactory.cs
- BamlLocalizableResourceKey.cs
- FixedSOMGroup.cs
- ZipIOCentralDirectoryFileHeader.cs
- ContextProperty.cs
- PasswordRecovery.cs
- Html32TextWriter.cs
- HttpCapabilitiesBase.cs
- PropertyValueEditor.cs
- HandleCollector.cs
- ComplexTypeEmitter.cs
- ParserStreamGeometryContext.cs
- XPathNavigatorKeyComparer.cs
- DetailsViewDeletedEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- SystemIcons.cs
- CodeTypeReferenceCollection.cs
- BindingNavigator.cs
- CompareInfo.cs
- XmlnsPrefixAttribute.cs
- RectangleHotSpot.cs
- DPCustomTypeDescriptor.cs
- RegisteredExpandoAttribute.cs
- ClientSession.cs
- Drawing.cs
- DoubleLinkListEnumerator.cs
- OuterGlowBitmapEffect.cs
- PaginationProgressEventArgs.cs
- cookieexception.cs
- InputProviderSite.cs
- HtmlInputCheckBox.cs
- MulticastOption.cs
- PackageRelationshipCollection.cs
- MailWebEventProvider.cs
- ReaderWriterLock.cs
- FutureFactory.cs
- LayoutTable.cs
- DrawingContextDrawingContextWalker.cs
- SpeechAudioFormatInfo.cs
- PeerNameRecord.cs
- StylusCaptureWithinProperty.cs
- XomlCompilerError.cs
- ListCollectionView.cs
- NativeMethods.cs
- PagesSection.cs
- SafeRightsManagementHandle.cs
- DbMetaDataColumnNames.cs
- BaseInfoTable.cs
- NavigationProperty.cs
- AlternationConverter.cs
- XMLSchema.cs
- BindableAttribute.cs
- WhitespaceSignificantCollectionAttribute.cs
- QueryCacheEntry.cs
- CheckBoxPopupAdapter.cs
- PrimitiveXmlSerializers.cs
- ProcessModuleDesigner.cs
- SecUtil.cs
- TimeSpanConverter.cs
- OleDbException.cs
- CodeBlockBuilder.cs