Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / BindingMemberInfo.cs / 1 / BindingMemberInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Globalization; ////// /// public struct BindingMemberInfo { private string dataList; private string dataField; ///[To be supplied.] ////// /// public BindingMemberInfo(string dataMember) { if (dataMember == null) dataMember = ""; int lastDot = dataMember.LastIndexOf("."); if (lastDot != -1) { dataList = dataMember.Substring(0,lastDot); dataField = dataMember.Substring(lastDot+1); } else { dataList = ""; dataField = dataMember; } } ///[To be supplied.] ////// /// public string BindingPath { get { return (dataList != null ? dataList : ""); } } ///[To be supplied.] ////// /// public string BindingField { get { return (dataField != null ? dataField : ""); } } ///[To be supplied.] ////// /// public string BindingMember { get { return (BindingPath.Length > 0 ? BindingPath + "." + BindingField : BindingField); } } ///[To be supplied.] ////// /// public override bool Equals(object otherObject) { if (otherObject is BindingMemberInfo) { BindingMemberInfo otherMember = (BindingMemberInfo) otherObject; return (String.Equals(this.BindingMember, otherMember.BindingMember, StringComparison.OrdinalIgnoreCase)); } return false; } public static bool operator ==(BindingMemberInfo a, BindingMemberInfo b) { return a.Equals(b); } public static bool operator !=(BindingMemberInfo a, BindingMemberInfo b) { return !a.Equals(b); } ///[To be supplied.] ////// /// public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Globalization; ////// /// public struct BindingMemberInfo { private string dataList; private string dataField; ///[To be supplied.] ////// /// public BindingMemberInfo(string dataMember) { if (dataMember == null) dataMember = ""; int lastDot = dataMember.LastIndexOf("."); if (lastDot != -1) { dataList = dataMember.Substring(0,lastDot); dataField = dataMember.Substring(lastDot+1); } else { dataList = ""; dataField = dataMember; } } ///[To be supplied.] ////// /// public string BindingPath { get { return (dataList != null ? dataList : ""); } } ///[To be supplied.] ////// /// public string BindingField { get { return (dataField != null ? dataField : ""); } } ///[To be supplied.] ////// /// public string BindingMember { get { return (BindingPath.Length > 0 ? BindingPath + "." + BindingField : BindingField); } } ///[To be supplied.] ////// /// public override bool Equals(object otherObject) { if (otherObject is BindingMemberInfo) { BindingMemberInfo otherMember = (BindingMemberInfo) otherObject; return (String.Equals(this.BindingMember, otherMember.BindingMember, StringComparison.OrdinalIgnoreCase)); } return false; } public static bool operator ==(BindingMemberInfo a, BindingMemberInfo b) { return a.Equals(b); } public static bool operator !=(BindingMemberInfo a, BindingMemberInfo b) { return !a.Equals(b); } ///[To be supplied.] ////// /// public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PathGradientBrush.cs
- PointCollectionValueSerializer.cs
- CollectionView.cs
- BStrWrapper.cs
- EmbeddedMailObject.cs
- LinqDataSourceUpdateEventArgs.cs
- Set.cs
- XmlAttributes.cs
- QuaternionIndependentAnimationStorage.cs
- EventItfInfo.cs
- QueryCacheManager.cs
- EventLogPermissionAttribute.cs
- SelectorItemAutomationPeer.cs
- Msec.cs
- NetStream.cs
- TimeSpan.cs
- AdornerPresentationContext.cs
- DataSourceConverter.cs
- TCPListener.cs
- SchemaImporterExtension.cs
- SelectedGridItemChangedEvent.cs
- ApplicationException.cs
- Material.cs
- SettingsProperty.cs
- SweepDirectionValidation.cs
- PackageFilter.cs
- DataException.cs
- ProcessProtocolHandler.cs
- PassportAuthenticationModule.cs
- InputProcessorProfiles.cs
- ArgumentException.cs
- DataTrigger.cs
- ResourceDisplayNameAttribute.cs
- Stack.cs
- ExpressionVisitorHelpers.cs
- XsdBuilder.cs
- XmlSchemaException.cs
- ProfilePropertySettingsCollection.cs
- TransportContext.cs
- WsatServiceCertificate.cs
- VirtualPathUtility.cs
- BoundsDrawingContextWalker.cs
- LogicalExpr.cs
- SqlServer2KCompatibilityCheck.cs
- PipelineModuleStepContainer.cs
- AggregateNode.cs
- SubordinateTransaction.cs
- HostingEnvironment.cs
- BamlLocalizer.cs
- RIPEMD160.cs
- InternalDispatchObject.cs
- SQLInt16.cs
- DetailsViewRow.cs
- CryptoConfig.cs
- CheckBoxStandardAdapter.cs
- StandardBindingImporter.cs
- ContentPlaceHolder.cs
- DataColumnMapping.cs
- WindowsToolbarItemAsMenuItem.cs
- PropertyPathWorker.cs
- LoginUtil.cs
- ResourceAssociationSet.cs
- ToolStripAdornerWindowService.cs
- SspiHelper.cs
- _DomainName.cs
- DesignTimeSiteMapProvider.cs
- LambdaCompiler.Binary.cs
- SharedConnectionWorkflowTransactionService.cs
- SignedInfo.cs
- ApplicationBuildProvider.cs
- MsdtcClusterUtils.cs
- WpfPayload.cs
- DesignerAttribute.cs
- WindowsContainer.cs
- EntityDataSourceView.cs
- MemoryMappedViewAccessor.cs
- SeparatorAutomationPeer.cs
- MatrixCamera.cs
- StylusPointPropertyUnit.cs
- StylusPointPropertyId.cs
- SpellCheck.cs
- RuleRef.cs
- ToolStripPanelCell.cs
- SrgsNameValueTag.cs
- XmlHelper.cs
- RegexCapture.cs
- PropertyDescriptorComparer.cs
- UriSection.cs
- XmlAttribute.cs
- HtmlTableCell.cs
- WebPartsSection.cs
- UnitySerializationHolder.cs
- OletxVolatileEnlistment.cs
- ActivityDesigner.cs
- SafeRightsManagementHandle.cs
- TypeBuilder.cs
- ChannelSinkStacks.cs
- BitSet.cs
- Command.cs
- SafeNativeMethodsCLR.cs