Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OfTypeExpression.cs
- EncoderNLS.cs
- ToolStripPanelSelectionGlyph.cs
- RowToParametersTransformer.cs
- XamlVector3DCollectionSerializer.cs
- RtfNavigator.cs
- BuildResult.cs
- LookupNode.cs
- RegexWriter.cs
- ShaderEffect.cs
- FreezableDefaultValueFactory.cs
- WebBrowsableAttribute.cs
- DES.cs
- ListViewInsertEventArgs.cs
- ToolStripItem.cs
- PtsHelper.cs
- WebPartHelpVerb.cs
- TextStore.cs
- MediaCommands.cs
- ICspAsymmetricAlgorithm.cs
- UniqueContractNameValidationBehavior.cs
- ISAPIWorkerRequest.cs
- NamespaceMapping.cs
- ListViewSelectEventArgs.cs
- EntityDesignerDataSourceView.cs
- CmsInterop.cs
- DataRelationCollection.cs
- TagMapInfo.cs
- altserialization.cs
- SqlWebEventProvider.cs
- FamilyTypeface.cs
- SQLConvert.cs
- ClientApiGenerator.cs
- VisualStyleTypesAndProperties.cs
- mactripleDES.cs
- BinaryNegotiation.cs
- MouseEvent.cs
- Resources.Designer.cs
- OutputCacheSection.cs
- ObjectConverter.cs
- MobileListItem.cs
- UIElement.cs
- DataServiceHostFactory.cs
- MobileUserControl.cs
- NullableFloatSumAggregationOperator.cs
- Menu.cs
- DateTimePicker.cs
- PerformanceCounterCategory.cs
- WmfPlaceableFileHeader.cs
- ByteStack.cs
- Currency.cs
- Codec.cs
- ObjectListShowCommandsEventArgs.cs
- WindowAutomationPeer.cs
- RuntimeConfigurationRecord.cs
- SymbolTable.cs
- BitmapCacheBrush.cs
- ControlUtil.cs
- WebServiceData.cs
- UIntPtr.cs
- Stylesheet.cs
- Point4D.cs
- XmlQueryCardinality.cs
- CqlParserHelpers.cs
- ColumnReorderedEventArgs.cs
- _NtlmClient.cs
- smtppermission.cs
- CreateUserWizard.cs
- ListViewSelectEventArgs.cs
- SqlNotificationRequest.cs
- StateBag.cs
- JapaneseLunisolarCalendar.cs
- ContextMenuService.cs
- EmptyReadOnlyDictionaryInternal.cs
- WindowsFormsHostAutomationPeer.cs
- FigureParaClient.cs
- ProviderCollection.cs
- EventBindingService.cs
- MetadataArtifactLoaderCompositeFile.cs
- LinqDataSourceDeleteEventArgs.cs
- XmlWellformedWriter.cs
- ComboBoxDesigner.cs
- WpfSharedBamlSchemaContext.cs
- QueryOutputWriter.cs
- XmlSchemaAttribute.cs
- DeclaredTypeValidatorAttribute.cs
- MessageEnumerator.cs
- SettingsPropertyValueCollection.cs
- GradientBrush.cs
- UnsafeNetInfoNativeMethods.cs
- Config.cs
- OrderingQueryOperator.cs
- WindowsComboBox.cs
- MetadataCache.cs
- DbConnectionOptions.cs
- WebPartRestoreVerb.cs
- KerberosRequestorSecurityToken.cs
- BindingElement.cs
- XmlAttributeCollection.cs
- httpapplicationstate.cs