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
- ImageBrush.cs
- SelectedGridItemChangedEvent.cs
- HostingEnvironmentException.cs
- TypefaceMap.cs
- SystemNetHelpers.cs
- DocumentPageTextView.cs
- StylusButtonEventArgs.cs
- WebConfigurationManager.cs
- StatusBarItem.cs
- CheckBoxFlatAdapter.cs
- SharedRuntimeState.cs
- TreeNodeStyleCollectionEditor.cs
- WindowsClaimSet.cs
- hwndwrapper.cs
- StylusPointProperty.cs
- _LoggingObject.cs
- IdentityModelDictionary.cs
- SrgsText.cs
- DataMisalignedException.cs
- BigIntegerStorage.cs
- FormClosingEvent.cs
- XPathBinder.cs
- QilInvokeLateBound.cs
- DbConnectionInternal.cs
- Exceptions.cs
- ElementNotAvailableException.cs
- PeerResolverSettings.cs
- __ComObject.cs
- Point3DCollection.cs
- TextRangeEditLists.cs
- DesignSurface.cs
- StoreItemCollection.cs
- CalloutQueueItem.cs
- StateMachineSubscriptionManager.cs
- SqlException.cs
- TemplateXamlParser.cs
- TextDecorationCollectionConverter.cs
- AtomicFile.cs
- RectAnimationClockResource.cs
- HostSecurityManager.cs
- ThumbButtonInfo.cs
- WebPartConnection.cs
- _Events.cs
- DeviceContexts.cs
- BamlResourceSerializer.cs
- LoginDesignerUtil.cs
- RadioButton.cs
- TransformCollection.cs
- AutomationPatternInfo.cs
- SafeNativeMethodsOther.cs
- ParameterBinding.cs
- HeaderCollection.cs
- BaseCodeDomTreeGenerator.cs
- HttpResponseHeader.cs
- SpeechUI.cs
- ProxyManager.cs
- CommandHelpers.cs
- HeaderedContentControl.cs
- DependencyPropertyKind.cs
- Bits.cs
- SqlTopReducer.cs
- ComponentCollection.cs
- BaseValidator.cs
- DataRelation.cs
- ScriptBehaviorDescriptor.cs
- PenLineJoinValidation.cs
- TypeDescriptionProviderAttribute.cs
- ValueUtilsSmi.cs
- LineSegment.cs
- BooleanFunctions.cs
- RuleSetDialog.Designer.cs
- FlowLayoutPanel.cs
- BoolExpressionVisitors.cs
- BitmapEffectvisualstate.cs
- BasicExpandProvider.cs
- XmlIlTypeHelper.cs
- CounterSample.cs
- CredentialCache.cs
- SelectionRange.cs
- IndentedTextWriter.cs
- MD5CryptoServiceProvider.cs
- RSAPKCS1SignatureDeformatter.cs
- CorrelationToken.cs
- SqlProviderManifest.cs
- BinaryFormatter.cs
- HtmlTableCell.cs
- EncodingTable.cs
- GregorianCalendar.cs
- SplitterPanelDesigner.cs
- CodeMethodReturnStatement.cs
- AdapterDictionary.cs
- ProfileModule.cs
- Variant.cs
- CalculatedColumn.cs
- TraceContextRecord.cs
- Help.cs
- AdornerDecorator.cs
- FormattedText.cs
- ActivityTypeResolver.xaml.cs
- SiteMapSection.cs