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
- TextParaLineResult.cs
- FrameworkObject.cs
- SQLSingleStorage.cs
- CommonProperties.cs
- Graphics.cs
- AtlasWeb.Designer.cs
- LogAppendAsyncResult.cs
- AuthorizationRuleCollection.cs
- EventEntry.cs
- RawUIStateInputReport.cs
- SiteMapSection.cs
- DataGridViewLinkCell.cs
- TemplateAction.cs
- TextEndOfParagraph.cs
- MessageEventSubscriptionService.cs
- DockAndAnchorLayout.cs
- CommandField.cs
- HttpRequest.cs
- TransactedBatchingBehavior.cs
- PropertyEntry.cs
- LambdaCompiler.cs
- IgnoreDeviceFilterElement.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Events.cs
- InkPresenterAutomationPeer.cs
- TypeDescriptionProviderAttribute.cs
- SecurityContext.cs
- WebHttpSecurityModeHelper.cs
- CurrentChangingEventManager.cs
- NonVisualControlAttribute.cs
- Registry.cs
- StringBlob.cs
- EpmCustomContentWriterNodeData.cs
- DataGridViewCell.cs
- VariableQuery.cs
- ToolBarOverflowPanel.cs
- SupportsEventValidationAttribute.cs
- TempEnvironment.cs
- ContentFileHelper.cs
- CodeTypeReferenceCollection.cs
- EntityTypeEmitter.cs
- WebChannelFactory.cs
- StringUtil.cs
- Cursors.cs
- Resources.Designer.cs
- Baml2006ReaderSettings.cs
- ReversePositionQuery.cs
- StringReader.cs
- EntityConnectionStringBuilder.cs
- SocketAddress.cs
- OdbcDataAdapter.cs
- DropTarget.cs
- HttpException.cs
- WebPart.cs
- FastEncoder.cs
- FreezableDefaultValueFactory.cs
- SqlCommandBuilder.cs
- MediaSystem.cs
- ArgumentOutOfRangeException.cs
- EnumerableCollectionView.cs
- BindingsCollection.cs
- SslStreamSecurityElement.cs
- SubqueryRules.cs
- ClusterSafeNativeMethods.cs
- DefaultValueConverter.cs
- PageStatePersister.cs
- ImageResources.Designer.cs
- TemplateControlBuildProvider.cs
- handlecollector.cs
- XmlRootAttribute.cs
- XmlAttributeAttribute.cs
- TableCellCollection.cs
- ObjectDataSource.cs
- Misc.cs
- RegularExpressionValidator.cs
- SectionRecord.cs
- MsdtcWrapper.cs
- Serializer.cs
- HostExecutionContextManager.cs
- WebHeaderCollection.cs
- InkCanvasAutomationPeer.cs
- DBSchemaTable.cs
- SystemTcpStatistics.cs
- TextEditorSpelling.cs
- XXXOnTypeBuilderInstantiation.cs
- InstalledFontCollection.cs
- GAC.cs
- Token.cs
- UriTemplateTrieNode.cs
- BatchServiceHost.cs
- MultiBinding.cs
- LightweightCodeGenerator.cs
- PointCollectionConverter.cs
- FtpCachePolicyElement.cs
- ConnectionStringsSection.cs
- TextRangeBase.cs
- Transform.cs
- ImageAnimator.cs
- SqlFlattener.cs
- StrokeNodeData.cs