Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ExpressionBinding.cs / 1305376 / 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; ////// 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; ////// 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
- BaseDataBoundControlDesigner.cs
- FilteredXmlReader.cs
- autovalidator.cs
- PaintEvent.cs
- GCHandleCookieTable.cs
- XmlQualifiedName.cs
- TraceContext.cs
- ZipIOCentralDirectoryBlock.cs
- SynchronousChannel.cs
- PagesSection.cs
- ResXBuildProvider.cs
- BehaviorEditorPart.cs
- PropVariant.cs
- MergablePropertyAttribute.cs
- ComponentEvent.cs
- RadioButton.cs
- CompModSwitches.cs
- ToolStripItemCollection.cs
- ColumnCollection.cs
- TextHintingModeValidation.cs
- HtmlValidatorAdapter.cs
- Model3DCollection.cs
- SaveFileDialog.cs
- DbException.cs
- EdmType.cs
- ClientTargetCollection.cs
- DragDropManager.cs
- BaseCodePageEncoding.cs
- MatrixUtil.cs
- DocumentReference.cs
- WebSysDescriptionAttribute.cs
- GenericTypeParameterConverter.cs
- FormViewInsertEventArgs.cs
- CardSpaceSelector.cs
- SpanIndex.cs
- ObjectConverter.cs
- SystemDiagnosticsSection.cs
- SettingsBindableAttribute.cs
- IdnMapping.cs
- EpmSyndicationContentSerializer.cs
- TimeSpanValidatorAttribute.cs
- SweepDirectionValidation.cs
- URIFormatException.cs
- Transform3D.cs
- SubpageParagraph.cs
- TriggerAction.cs
- ScriptingJsonSerializationSection.cs
- Module.cs
- SynchronizationContext.cs
- ProfileParameter.cs
- JulianCalendar.cs
- TextEditorDragDrop.cs
- BindingSourceDesigner.cs
- CopyOfAction.cs
- WizardPanelChangingEventArgs.cs
- XmlSchemaAnnotated.cs
- FramingDecoders.cs
- DispatcherEventArgs.cs
- DrawTreeNodeEventArgs.cs
- InfiniteTimeSpanConverter.cs
- ConstraintCollection.cs
- TextServicesManager.cs
- MessageTraceRecord.cs
- ExtendedPropertyDescriptor.cs
- NativeRecognizer.cs
- DoWorkEventArgs.cs
- DesignerMetadata.cs
- KeyTimeConverter.cs
- XmlDownloadManager.cs
- DataControlFieldCollection.cs
- InputGestureCollection.cs
- LZCodec.cs
- TextAnchor.cs
- XmlnsDictionary.cs
- X500Name.cs
- WebHeaderCollection.cs
- TTSVoice.cs
- TextEditorSelection.cs
- FileUtil.cs
- UserControlCodeDomTreeGenerator.cs
- HScrollProperties.cs
- LiteralControl.cs
- DoubleLinkListEnumerator.cs
- GuidelineCollection.cs
- CFStream.cs
- ValidationSummary.cs
- SignedXmlDebugLog.cs
- Icon.cs
- MimeParameters.cs
- BamlWriter.cs
- XmlTextReader.cs
- ReferentialConstraintRoleElement.cs
- StringResourceManager.cs
- XmlRawWriterWrapper.cs
- ResourcesChangeInfo.cs
- TextContainerHelper.cs
- OuterGlowBitmapEffect.cs
- InputLanguageSource.cs
- DispatcherHooks.cs
- PanelDesigner.cs