Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / BindingMemberInfo.cs / 1305376 / BindingMemberInfo.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System;
using System.Globalization;
///
///
/// [To be supplied.]
///
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.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System;
using System.Globalization;
///
///
/// [To be supplied.]
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SizeFConverter.cs
- MatrixAnimationUsingKeyFrames.cs
- ImageSourceConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- SqlConnectionString.cs
- NestPullup.cs
- XmlWellformedWriter.cs
- RegexMatch.cs
- DataControlFieldHeaderCell.cs
- SystemIPv4InterfaceProperties.cs
- MessageAction.cs
- QilVisitor.cs
- WindowsIdentity.cs
- WindowsProgressbar.cs
- Context.cs
- SelectionHighlightInfo.cs
- HttpsHostedTransportConfiguration.cs
- StringUtil.cs
- RealizationContext.cs
- ContractNamespaceAttribute.cs
- RetrieveVirtualItemEventArgs.cs
- TransportConfigurationTypeElement.cs
- FileDialogPermission.cs
- FloaterBaseParaClient.cs
- Executor.cs
- ContractNamespaceAttribute.cs
- EndCreateSecurityTokenRequest.cs
- Int16.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Events.cs
- Permission.cs
- DoubleAnimationBase.cs
- Soap12ProtocolReflector.cs
- XmlDocument.cs
- ViewManager.cs
- OdbcConnection.cs
- HtmlControl.cs
- CompilerTypeWithParams.cs
- ComAwareEventInfo.cs
- FloatUtil.cs
- Point4D.cs
- TimelineGroup.cs
- PermissionSet.cs
- Cursors.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- DataServiceQuery.cs
- JsonCollectionDataContract.cs
- EnterpriseServicesHelper.cs
- SqlLiftIndependentRowExpressions.cs
- BoundsDrawingContextWalker.cs
- MarkupProperty.cs
- SmiRequestExecutor.cs
- SafePEFileHandle.cs
- XmlElementAttribute.cs
- MergePropertyDescriptor.cs
- ArrayExtension.cs
- DesignerSerializationManager.cs
- HtmlForm.cs
- DataGridViewCheckBoxColumn.cs
- MetabaseReader.cs
- StructuredType.cs
- TypeResolver.cs
- MimeWriter.cs
- HttpListenerException.cs
- EmptyImpersonationContext.cs
- ProviderSettingsCollection.cs
- ReliableMessagingVersionConverter.cs
- FtpWebRequest.cs
- ListViewTableRow.cs
- ObjectKeyFrameCollection.cs
- WindowsMenu.cs
- BaseAutoFormat.cs
- SafeEventLogReadHandle.cs
- DispatcherOperation.cs
- SafeFindHandle.cs
- DbProviderFactories.cs
- OdbcConnectionStringbuilder.cs
- KerberosTicketHashIdentifierClause.cs
- Model3DGroup.cs
- DataGridTextColumn.cs
- DeclaredTypeValidatorAttribute.cs
- HashMembershipCondition.cs
- FileUtil.cs
- SafeEventLogWriteHandle.cs
- ValueTable.cs
- MetadataArtifactLoaderCompositeFile.cs
- HtmlElement.cs
- MutexSecurity.cs
- DefaultWorkflowLoaderService.cs
- ModulesEntry.cs
- LayoutTable.cs
- SecUtil.cs
- TimeIntervalCollection.cs
- ErrorTolerantObjectWriter.cs
- UrlPropertyAttribute.cs
- TextModifier.cs
- HashCodeCombiner.cs
- ConfigurationSchemaErrors.cs
- NameValueCollection.cs
- PropertySegmentSerializationProvider.cs