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
- ScrollBar.cs
- InputProviderSite.cs
- Matrix3D.cs
- EmptyStringExpandableObjectConverter.cs
- DataServiceResponse.cs
- DesignTimeVisibleAttribute.cs
- DataGridToolTip.cs
- HwndProxyElementProvider.cs
- BamlRecordHelper.cs
- DesignTimeXamlWriter.cs
- SimpleHandlerFactory.cs
- NumberSubstitution.cs
- ServicesExceptionNotHandledEventArgs.cs
- AdapterDictionary.cs
- objectresult_tresulttype.cs
- LinqDataSource.cs
- TableDetailsCollection.cs
- XmlSchemaAll.cs
- ImportContext.cs
- GridViewRowCollection.cs
- SQLBytes.cs
- ComponentDispatcher.cs
- iisPickupDirectory.cs
- FlatButtonAppearance.cs
- Rectangle.cs
- ColumnReorderedEventArgs.cs
- DataGridViewLayoutData.cs
- MimeTypePropertyAttribute.cs
- WpfWebRequestHelper.cs
- CrossAppDomainChannel.cs
- OdbcConnectionString.cs
- ValueTypeFixupInfo.cs
- IncrementalHitTester.cs
- BeginEvent.cs
- SizeChangedInfo.cs
- PenContexts.cs
- DemultiplexingDispatchMessageFormatter.cs
- WebPartConnection.cs
- EmbeddedMailObject.cs
- ConstraintEnumerator.cs
- ProfileParameter.cs
- RenamedEventArgs.cs
- _UriTypeConverter.cs
- DoubleConverter.cs
- RequestCacheEntry.cs
- CopyAction.cs
- AssemblyResourceLoader.cs
- RecordManager.cs
- ManagementObjectCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- DescendantOverDescendantQuery.cs
- IssuanceLicense.cs
- MultiTargetingUtil.cs
- FloaterParaClient.cs
- _SslSessionsCache.cs
- DllNotFoundException.cs
- WindowsRegion.cs
- ImageMapEventArgs.cs
- AdCreatedEventArgs.cs
- BufferBuilder.cs
- JoinGraph.cs
- SmiMetaDataProperty.cs
- XmlTextWriter.cs
- HexParser.cs
- EmptyEnumerable.cs
- CodeDomConfigurationHandler.cs
- DataGridViewCellLinkedList.cs
- ParentQuery.cs
- ReachFixedPageSerializerAsync.cs
- path.cs
- AppLevelCompilationSectionCache.cs
- FlowDocumentPage.cs
- XmlSerializer.cs
- CompletionProxy.cs
- UnauthorizedWebPart.cs
- DetailsViewRow.cs
- AdapterDictionary.cs
- WSDualHttpSecurityElement.cs
- EncodingDataItem.cs
- SystemIPInterfaceProperties.cs
- UmAlQuraCalendar.cs
- Logging.cs
- SafeProcessHandle.cs
- DataGridTableCollection.cs
- WindowsTokenRoleProvider.cs
- StandardCommands.cs
- ContentWrapperAttribute.cs
- BamlLocalizableResource.cs
- NativeRecognizer.cs
- XmlTypeAttribute.cs
- EncoderExceptionFallback.cs
- ArraySubsetEnumerator.cs
- ZipArchive.cs
- OptionUsage.cs
- SafeNativeMethods.cs
- Visual3D.cs
- EastAsianLunisolarCalendar.cs
- ProcessModuleDesigner.cs
- PageRequestManager.cs
- Pair.cs