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
- WindowsScrollBarBits.cs
- StrongNameUtility.cs
- GeneralTransform.cs
- TouchDevice.cs
- PopOutPanel.cs
- ProcessProtocolHandler.cs
- LayoutSettings.cs
- SelectionPattern.cs
- WinEventWrap.cs
- FieldBuilder.cs
- XmlIlVisitor.cs
- indexingfiltermarshaler.cs
- Errors.cs
- Preprocessor.cs
- AssemblyNameProxy.cs
- PopupEventArgs.cs
- UInt32.cs
- ServiceManager.cs
- CompoundFileIOPermission.cs
- DetailsViewPageEventArgs.cs
- XPathDocumentBuilder.cs
- EmptyControlCollection.cs
- ButtonStandardAdapter.cs
- TypeUtils.cs
- ListViewTableRow.cs
- AttributeQuery.cs
- BindableTemplateBuilder.cs
- TextOptions.cs
- ColumnHeaderConverter.cs
- TTSVoice.cs
- EdmError.cs
- LineBreakRecord.cs
- XmlCDATASection.cs
- PowerStatus.cs
- EventWaitHandle.cs
- HybridObjectCache.cs
- TraceHandler.cs
- SRDisplayNameAttribute.cs
- SqlExpressionNullability.cs
- AttachedPropertyMethodSelector.cs
- ToolStripManager.cs
- ListContractAdapter.cs
- DataGridViewHitTestInfo.cs
- BinaryWriter.cs
- DeriveBytes.cs
- TerminatingOperationBehavior.cs
- TraceListener.cs
- MapPathBasedVirtualPathProvider.cs
- SrgsRule.cs
- safelinkcollection.cs
- ExtensionDataReader.cs
- SolidBrush.cs
- prefixendpointaddressmessagefiltertable.cs
- EditingMode.cs
- CatalogPartChrome.cs
- remotingproxy.cs
- CustomExpressionEventArgs.cs
- TextHintingModeValidation.cs
- SecurityContextTokenCache.cs
- WebPartDeleteVerb.cs
- OracleRowUpdatedEventArgs.cs
- LinkButton.cs
- BitmapEncoder.cs
- SolidBrush.cs
- VisualTreeHelper.cs
- RemotingConfiguration.cs
- TextLine.cs
- MatrixTransform.cs
- DataAdapter.cs
- ResourceDictionaryCollection.cs
- MD5.cs
- AnonymousIdentificationModule.cs
- SqlDataSource.cs
- DataControlImageButton.cs
- Handle.cs
- IsolatedStorageFilePermission.cs
- IdentityElement.cs
- ProcessProtocolHandler.cs
- ErrorView.xaml.cs
- WebServicesDescriptionAttribute.cs
- RowCache.cs
- XmlFileEditor.cs
- RowToParametersTransformer.cs
- UdpUtility.cs
- DbConnectionPoolCounters.cs
- PackUriHelper.cs
- InterleavedZipPartStream.cs
- FieldToken.cs
- ScriptManager.cs
- MeasurementDCInfo.cs
- PropertyConverter.cs
- AffineTransform3D.cs
- BinaryMethodMessage.cs
- TrustLevel.cs
- ViewSimplifier.cs
- DataGridHeaderBorder.cs
- DataRelationPropertyDescriptor.cs
- AspNetRouteServiceHttpHandler.cs
- Positioning.cs
- DataControlFieldCollection.cs