Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RegexStringValidator.cs
- XsltFunctions.cs
- wpf-etw.cs
- InternalSafeNativeMethods.cs
- WindowsSpinner.cs
- ControlBuilder.cs
- RepeatButtonAutomationPeer.cs
- MenuItemStyle.cs
- OutgoingWebRequestContext.cs
- HttpRuntimeSection.cs
- CodeLinePragma.cs
- WebPartDisplayModeCollection.cs
- SystemIPGlobalProperties.cs
- DSASignatureDeformatter.cs
- control.ime.cs
- ConnectionManagementElementCollection.cs
- XmlCustomFormatter.cs
- DataControlReference.cs
- RemoteWebConfigurationHost.cs
- ViewBox.cs
- XmlSchemaDatatype.cs
- ApplicationContext.cs
- RuleElement.cs
- SQLDecimalStorage.cs
- SmiConnection.cs
- GenericPrincipal.cs
- EdmEntityTypeAttribute.cs
- parserscommon.cs
- AssemblyCache.cs
- TypeInitializationException.cs
- IntellisenseTextBox.designer.cs
- QueryPageSettingsEventArgs.cs
- TabPage.cs
- OleDbException.cs
- DataGridColumn.cs
- Stopwatch.cs
- DataServiceKeyAttribute.cs
- Hashtable.cs
- RouteItem.cs
- ServiceBehaviorAttribute.cs
- LineMetrics.cs
- DocumentSequence.cs
- XmlNode.cs
- ZoneMembershipCondition.cs
- SHA512.cs
- PnrpPermission.cs
- RegexEditorDialog.cs
- SingleConverter.cs
- BitmapEffect.cs
- ApplicationSecurityInfo.cs
- OleDbPermission.cs
- MatrixUtil.cs
- ValueType.cs
- TabPanel.cs
- BasicExpressionVisitor.cs
- SimpleHandlerBuildProvider.cs
- CompileXomlTask.cs
- QueuePropertyVariants.cs
- ObjectIDGenerator.cs
- EncoderExceptionFallback.cs
- BindValidator.cs
- ReaderContextStackData.cs
- ClientSettingsStore.cs
- HttpPostedFile.cs
- EventWaitHandle.cs
- BrowserDefinitionCollection.cs
- CLRBindingWorker.cs
- CheckBoxList.cs
- SafeBitVector32.cs
- ArgIterator.cs
- RtType.cs
- WorkflowQueueInfo.cs
- OleDbStruct.cs
- OdbcParameterCollection.cs
- Separator.cs
- Double.cs
- DataBindingCollection.cs
- BaseTemplateBuildProvider.cs
- MethodBuilder.cs
- ObjectReaderCompiler.cs
- CompoundFileIOPermission.cs
- SqlConnectionHelper.cs
- GenericXmlSecurityToken.cs
- RegexCaptureCollection.cs
- LowerCaseStringConverter.cs
- BinaryObjectInfo.cs
- EntityKey.cs
- HuffmanTree.cs
- DataControlLinkButton.cs
- RuntimeConfigLKG.cs
- RecordBuilder.cs
- CompilationUtil.cs
- FunctionDescription.cs
- X509Certificate2Collection.cs
- DataGridViewLinkCell.cs
- RemotingConfiguration.cs
- DataTableReader.cs
- SmiContextFactory.cs
- ContentTextAutomationPeer.cs
- HTMLTextWriter.cs