Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / DataBinding.cs / 1 / DataBinding.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 DataBinding { private string propertyName; private Type propertyType; private string expression; ///Enables RAD designers to create data binding expressions /// at design time. This class cannot be inherited. ////// public DataBinding(string propertyName, Type propertyType, string expression) { this.propertyName = propertyName; this.propertyType = propertyType; this.expression = expression; } ///Initializes a new instance of the ///class. /// public string Expression { get { return expression; } set { Debug.Assert((value != null) && (value.Length != 0), "Invalid expression"); expression = value; } } ///Indicates the data binding expression to be evaluated. ////// public string PropertyName { get { return propertyName; } } ///Indicates the name of the property that is to be data bound against. This /// property is read-only. ////// public Type PropertyType { get { return propertyType; } } ///Indicates the type of the data bound property. This property is /// read-only. ////// DataBinding objects are placed in a hashtable representing the collection /// of bindings on a control. There can only be one binding/property, so /// the hashcode computation should match the Equals implementation and only /// take the property name into account. /// public override int GetHashCode() { return propertyName.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } ////// public override bool Equals(object obj) { if ((obj != null) && (obj is DataBinding)) { DataBinding binding = (DataBinding)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
- WizardSideBarListControlItemEventArgs.cs
- LineSegment.cs
- TransformedBitmap.cs
- ValidatorCollection.cs
- TreeViewImageIndexConverter.cs
- VectorCollectionConverter.cs
- TraceRecord.cs
- DbConnectionFactory.cs
- SearchForVirtualItemEventArgs.cs
- DbReferenceCollection.cs
- GenericsInstances.cs
- RuntimeEnvironment.cs
- LocatorPart.cs
- PresentationSource.cs
- Image.cs
- GridItem.cs
- ResourcePool.cs
- PropertyInfoSet.cs
- File.cs
- NativeMethods.cs
- Pointer.cs
- RepeatButton.cs
- NameValueConfigurationCollection.cs
- ChildrenQuery.cs
- GenericTypeParameterBuilder.cs
- FloatUtil.cs
- TextRangeBase.cs
- UnknownWrapper.cs
- ChannelFactory.cs
- LinqExpressionNormalizer.cs
- CursorConverter.cs
- ZipPackage.cs
- HttpPostedFile.cs
- RightsManagementEncryptedStream.cs
- ExpressionBinding.cs
- HtmlControlAdapter.cs
- DataGridViewComboBoxColumn.cs
- TabRenderer.cs
- ISessionStateStore.cs
- XPathException.cs
- SignatureDescription.cs
- SelectionGlyphBase.cs
- CompiledAction.cs
- FormViewRow.cs
- LocalizationComments.cs
- LassoSelectionBehavior.cs
- PlainXmlWriter.cs
- RewritingPass.cs
- GeometryConverter.cs
- Knowncolors.cs
- Int32Animation.cs
- UIHelper.cs
- Classification.cs
- ISAPIRuntime.cs
- CommonDialog.cs
- LineVisual.cs
- ParallelEnumerable.cs
- HttpRuntimeSection.cs
- IndentedWriter.cs
- SplineKeyFrames.cs
- ForEachAction.cs
- AsymmetricKeyExchangeDeformatter.cs
- RectangleConverter.cs
- AlgoModule.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ProxyWebPartManager.cs
- EmissiveMaterial.cs
- PlacementWorkspace.cs
- FileLevelControlBuilderAttribute.cs
- QuotedStringWriteStateInfo.cs
- ObjectMemberMapping.cs
- XmlSchemaCompilationSettings.cs
- AnimatedTypeHelpers.cs
- ProcessModule.cs
- FixUpCollection.cs
- coordinatorscratchpad.cs
- EntityProviderFactory.cs
- SHA256Managed.cs
- DataRecordInternal.cs
- AutomationEvent.cs
- ApplicationManager.cs
- DataGridViewCheckBoxColumn.cs
- StrokeNodeEnumerator.cs
- PolyBezierSegmentFigureLogic.cs
- EmbeddedMailObjectsCollection.cs
- CapiSafeHandles.cs
- DataGridViewAdvancedBorderStyle.cs
- RawContentTypeMapper.cs
- GenerateTemporaryTargetAssembly.cs
- VisualBrush.cs
- ReplyChannelBinder.cs
- ErrorWrapper.cs
- HostingEnvironment.cs
- UTF8Encoding.cs
- AndCondition.cs
- IndexedString.cs
- SizeAnimation.cs
- UiaCoreApi.cs
- UrlAuthorizationModule.cs
- MarkerProperties.cs