Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / DesignBinding.cs / 1 / DesignBinding.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System; using System.ComponentModel; using System.Drawing.Design; using System.Globalization; [ Editor("System.Windows.Forms.Design.DesignBindingEditor, " + AssemblyRef.SystemDesign,typeof(UITypeEditor)) ] internal class DesignBinding { private object dataSource; private string dataMember; public static DesignBinding Null = new DesignBinding(null, null); public DesignBinding(object dataSource, string dataMember) { this.dataSource = dataSource; this.dataMember = dataMember; } public bool IsNull { get { return (dataSource == null); } } public object DataSource { get { return dataSource; } } public string DataMember { get { return dataMember; } } public string DataField { get { if (String.IsNullOrEmpty(dataMember)) { return String.Empty; } int lastDot = dataMember.LastIndexOf("."); if (lastDot == -1) { return dataMember; } else { return dataMember.Substring(lastDot+1); } } } public bool Equals(object dataSource, string dataMember) { return (dataSource == this.dataSource && String.Equals(dataMember, this.dataMember, StringComparison.OrdinalIgnoreCase)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VScrollProperties.cs
- CompilerErrorCollection.cs
- NavigationPropertySingletonExpression.cs
- DataGridViewRow.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ConfigXmlAttribute.cs
- WebPartsPersonalizationAuthorization.cs
- PrintDialogException.cs
- QueryableDataSource.cs
- ThousandthOfEmRealDoubles.cs
- LineSegment.cs
- IssuanceLicense.cs
- _ListenerRequestStream.cs
- ResourceDictionary.cs
- DoubleAnimationClockResource.cs
- DirtyTextRange.cs
- CodeIdentifiers.cs
- UshortList2.cs
- WebColorConverter.cs
- FigureParaClient.cs
- ListenerServiceInstallComponent.cs
- HierarchicalDataSourceControl.cs
- DataRowChangeEvent.cs
- TTSEvent.cs
- DesignerVerbCollection.cs
- EffectiveValueEntry.cs
- ProjectionCamera.cs
- Semaphore.cs
- HttpResponseInternalBase.cs
- SizeIndependentAnimationStorage.cs
- WebPartZoneCollection.cs
- GridSplitter.cs
- CodeThrowExceptionStatement.cs
- CustomTypeDescriptor.cs
- QilNode.cs
- HitTestWithPointDrawingContextWalker.cs
- TextViewBase.cs
- CompilerResults.cs
- SerializableAttribute.cs
- WindowsClaimSet.cs
- BufferModesCollection.cs
- Soap12ProtocolImporter.cs
- FieldToken.cs
- XmlTextReader.cs
- SqlWebEventProvider.cs
- DataSetUtil.cs
- KeyInfo.cs
- METAHEADER.cs
- TableRowGroupCollection.cs
- ImageFormatConverter.cs
- DataBindingCollectionEditor.cs
- MaskedTextBoxTextEditor.cs
- UpdateDelegates.Generated.cs
- DataGridRow.cs
- OraclePermission.cs
- NumberFunctions.cs
- HttpPostedFile.cs
- DesignerHost.cs
- rsa.cs
- _NetRes.cs
- XmlSchemaNotation.cs
- DataMisalignedException.cs
- WorkflowValidationFailedException.cs
- GridViewAutomationPeer.cs
- StorageEntityTypeMapping.cs
- TagPrefixCollection.cs
- MutexSecurity.cs
- DirectoryInfo.cs
- TypeReference.cs
- ConstructorBuilder.cs
- Axis.cs
- HttpBufferlessInputStream.cs
- XmlSchemaExporter.cs
- DesignTimeSiteMapProvider.cs
- SoapIgnoreAttribute.cs
- EditingCoordinator.cs
- CaseInsensitiveComparer.cs
- PropertyOverridesTypeEditor.cs
- EdmToObjectNamespaceMap.cs
- ColumnClickEvent.cs
- ExpressionVisitorHelpers.cs
- HttpContextServiceHost.cs
- MultiDataTrigger.cs
- CollectionConverter.cs
- AssemblyAttributesGoHere.cs
- StatusBarDesigner.cs
- Button.cs
- TextUtf8RawTextWriter.cs
- AssemblyAttributes.cs
- DataGridViewHeaderCell.cs
- CleanUpVirtualizedItemEventArgs.cs
- ExtendedPropertyDescriptor.cs
- ObjectConverter.cs
- WebWorkflowRole.cs
- WorkflowInlining.cs
- HelpInfo.cs
- ColorMap.cs
- ArgIterator.cs
- KeyBinding.cs
- SyndicationPerson.cs