Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AutomationPropertyInfo.cs
- RenderData.cs
- WindowsFormsSectionHandler.cs
- RegexStringValidatorAttribute.cs
- CookielessHelper.cs
- ReverseComparer.cs
- FormViewInsertedEventArgs.cs
- DBSchemaRow.cs
- Rfc2898DeriveBytes.cs
- BitmapData.cs
- CodeRegionDirective.cs
- DateTimeFormatInfo.cs
- HttpCachePolicy.cs
- ImpersonationContext.cs
- DeviceFiltersSection.cs
- LazyTextWriterCreator.cs
- ComponentRenameEvent.cs
- EntityDataSourceStatementEditor.cs
- HitTestFilterBehavior.cs
- Win32SafeHandles.cs
- AvTrace.cs
- KeyInfo.cs
- GridViewRowCollection.cs
- ToolboxItem.cs
- OleDbError.cs
- XmlSchemaFacet.cs
- ConfigXmlText.cs
- iisPickupDirectory.cs
- TypeBuilder.cs
- DSASignatureDeformatter.cs
- DesignerHierarchicalDataSourceView.cs
- TypeHelpers.cs
- CmsInterop.cs
- SharedUtils.cs
- CollectionViewProxy.cs
- LazyInitializer.cs
- FileInfo.cs
- ItemsPanelTemplate.cs
- DefaultValidator.cs
- AsyncPostBackErrorEventArgs.cs
- HttpCachePolicy.cs
- SqlParameterCollection.cs
- SecureStringHasher.cs
- BufferedGraphicsManager.cs
- FastEncoderStatics.cs
- DropDownHolder.cs
- ConvertTextFrag.cs
- IntranetCredentialPolicy.cs
- OleCmdHelper.cs
- ToggleProviderWrapper.cs
- SystemDiagnosticsSection.cs
- SHA512Cng.cs
- DesignerCategoryAttribute.cs
- MimePart.cs
- Shape.cs
- ProfileProvider.cs
- validationstate.cs
- xmlfixedPageInfo.cs
- PointAnimation.cs
- LocalizationParserHooks.cs
- WindowsFormsSynchronizationContext.cs
- CookielessData.cs
- Missing.cs
- StateBag.cs
- ValidatorCompatibilityHelper.cs
- HeaderCollection.cs
- OutputCacheProfile.cs
- SourceFileBuildProvider.cs
- ApplicationHost.cs
- X509SecurityToken.cs
- SingleConverter.cs
- SynchronizationContext.cs
- RemoveFromCollection.cs
- AlternateViewCollection.cs
- CancellationHandler.cs
- VerticalAlignConverter.cs
- SynchronousChannelMergeEnumerator.cs
- RTTypeWrapper.cs
- SmtpMail.cs
- NavigationHelper.cs
- OrthographicCamera.cs
- FastPropertyAccessor.cs
- CodeGeneratorAttribute.cs
- BufferedGraphics.cs
- Transform3D.cs
- MembershipAdapter.cs
- UpdateCompiler.cs
- EndPoint.cs
- MultipleCopiesCollection.cs
- XomlSerializationHelpers.cs
- HideDisabledControlAdapter.cs
- ISCIIEncoding.cs
- TypedServiceChannelBuilder.cs
- HierarchicalDataTemplate.cs
- ListBindableAttribute.cs
- HybridObjectCache.cs
- RoleBoolean.cs
- CacheModeValueSerializer.cs
- ConnectionPointCookie.cs
- TimeSpan.cs