Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathAncestorIterator.cs
- GridViewDeletedEventArgs.cs
- LogExtent.cs
- Sentence.cs
- LogLogRecord.cs
- RadioButtonBaseAdapter.cs
- HuffModule.cs
- ReferencedAssembly.cs
- ReverseInheritProperty.cs
- XmlSchemaObjectCollection.cs
- XPathAncestorQuery.cs
- TextEditorCopyPaste.cs
- WindowsListViewItem.cs
- FreezableOperations.cs
- Size3D.cs
- ClientConfigPaths.cs
- DataGridViewControlCollection.cs
- FormViewUpdatedEventArgs.cs
- ObjectParameterCollection.cs
- DnsPermission.cs
- Rotation3D.cs
- Point3DAnimation.cs
- GridViewEditEventArgs.cs
- Permission.cs
- basenumberconverter.cs
- controlskin.cs
- RSAOAEPKeyExchangeFormatter.cs
- ConnectivityStatus.cs
- ArraySubsetEnumerator.cs
- WindowClosedEventArgs.cs
- MetadataItemCollectionFactory.cs
- StatusStrip.cs
- DateTime.cs
- UpdateRecord.cs
- ScriptingWebServicesSectionGroup.cs
- NetTcpSecurity.cs
- DependentTransaction.cs
- ContentElement.cs
- ValueUtilsSmi.cs
- SimpleHandlerFactory.cs
- AsyncOperation.cs
- SequenceNumber.cs
- PieceNameHelper.cs
- Buffer.cs
- DataFormats.cs
- Misc.cs
- Misc.cs
- DomainConstraint.cs
- ObjectConverter.cs
- CompilationPass2Task.cs
- ResourcePool.cs
- MethodExpr.cs
- IPAddress.cs
- JournalEntry.cs
- ListControl.cs
- FunctionQuery.cs
- OdbcUtils.cs
- XmlWriterTraceListener.cs
- SubMenuStyle.cs
- SoapTransportImporter.cs
- ExceptionCollection.cs
- ProcessHost.cs
- FixedDSBuilder.cs
- QilCloneVisitor.cs
- ByteConverter.cs
- MimeWriter.cs
- IdnMapping.cs
- BaseParagraph.cs
- RadioButton.cs
- QueryInterceptorAttribute.cs
- OleDbError.cs
- FrameworkElementFactory.cs
- PropertyMapper.cs
- RequestContextBase.cs
- NCryptSafeHandles.cs
- View.cs
- ReadWriteObjectLock.cs
- CodeAccessSecurityEngine.cs
- TypedCompletedAsyncResult.cs
- SubMenuStyle.cs
- StylusPlugin.cs
- UICuesEvent.cs
- CommandConverter.cs
- Matrix3D.cs
- WindowsEditBox.cs
- EnumMemberAttribute.cs
- VectorAnimationUsingKeyFrames.cs
- Adorner.cs
- CultureInfo.cs
- SafeFileHandle.cs
- HtmlTitle.cs
- FormsAuthenticationTicket.cs
- DrawingContextDrawingContextWalker.cs
- TabletDevice.cs
- DbConnectionFactory.cs
- TextChangedEventArgs.cs
- BreakRecordTable.cs
- SpotLight.cs
- NetSectionGroup.cs
- XmlFormatExtensionPrefixAttribute.cs