Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / DataBinding.cs / 1305376 / 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; ////// 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; } } } // 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
- BindMarkupExtensionSerializer.cs
- KeysConverter.cs
- XPathNodeList.cs
- ScrollItemPattern.cs
- ClusterRegistryConfigurationProvider.cs
- XmlParser.cs
- SqlIdentifier.cs
- ConnectionPoolManager.cs
- DbSource.cs
- StringStorage.cs
- WebPartConnectionsCloseVerb.cs
- SqlBuffer.cs
- UpdateCommandGenerator.cs
- ISAPIApplicationHost.cs
- TransformDescriptor.cs
- ThumbAutomationPeer.cs
- ValidatedControlConverter.cs
- FrameworkElement.cs
- HtmlTableRow.cs
- Delegate.cs
- ControlIdConverter.cs
- ListViewItemEventArgs.cs
- DynamicDataExtensions.cs
- TargetInvocationException.cs
- LogEntryHeaderDeserializer.cs
- FormatException.cs
- ArrangedElement.cs
- CustomPopupPlacement.cs
- GridEntryCollection.cs
- CompositeFontParser.cs
- SchemaCollectionCompiler.cs
- PersonalizableAttribute.cs
- Interlocked.cs
- DelegateArgumentReference.cs
- DiagnosticTrace.cs
- HttpResponseHeader.cs
- InternalReceiveMessage.cs
- WorkflowPersistenceService.cs
- DefaultValueTypeConverter.cs
- RegisteredArrayDeclaration.cs
- XPathNavigator.cs
- XamlToRtfWriter.cs
- DataTableNewRowEvent.cs
- Font.cs
- SoapAttributes.cs
- Utility.cs
- ParenthesizePropertyNameAttribute.cs
- SafeMILHandleMemoryPressure.cs
- SecurityTokenException.cs
- WebPartCatalogCloseVerb.cs
- BitmapFrameEncode.cs
- SelectionUIHandler.cs
- DataGridViewTopLeftHeaderCell.cs
- DBConnectionString.cs
- MailMessageEventArgs.cs
- ExpressionDumper.cs
- LowerCaseStringConverter.cs
- Figure.cs
- LexicalChunk.cs
- OleServicesContext.cs
- WebHostScriptMappingsInstallComponent.cs
- COM2IProvidePropertyBuilderHandler.cs
- GridEntryCollection.cs
- SqlAliaser.cs
- Peer.cs
- HttpProtocolImporter.cs
- XmlSchemaComplexContent.cs
- OrElse.cs
- XmlSchemaSimpleTypeRestriction.cs
- SubMenuStyle.cs
- BooleanStorage.cs
- SoapCommonClasses.cs
- DataGridViewCellCancelEventArgs.cs
- CustomAttributeFormatException.cs
- ProfileManager.cs
- WebPartConnectionsConnectVerb.cs
- IfAction.cs
- MetadataFile.cs
- CapiSafeHandles.cs
- PoisonMessageException.cs
- CompilationSection.cs
- ArrayList.cs
- HierarchicalDataBoundControlAdapter.cs
- IPAddress.cs
- Transform3D.cs
- CachedFontFamily.cs
- StateWorkerRequest.cs
- SqlProfileProvider.cs
- graph.cs
- QilUnary.cs
- SafeRightsManagementEnvironmentHandle.cs
- COM2Enum.cs
- TypeReference.cs
- ObjectListShowCommandsEventArgs.cs
- AuthorizationRuleCollection.cs
- EntityContainerEmitter.cs
- UserInitiatedNavigationPermission.cs
- LinqDataSourceHelper.cs
- Pair.cs
- UrlMappingCollection.cs