Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Converters / VBIdentifierTrimConverter.cs / 1305376 / VBIdentifierTrimConverter.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Converters { using System.Windows.Data; class VBIdentifierTrimConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (targetType == typeof(string) && value is string) { return ((string)value).Trim(); } else { return value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Converters { using System.Windows.Data; class VBIdentifierTrimConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (targetType == typeof(string) && value is string) { return ((string)value).Trim(); } else { return value; } } } } // 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
- ContentIterators.cs
- TypeSystem.cs
- GlyphShapingProperties.cs
- ProcessHost.cs
- SqlWebEventProvider.cs
- FormView.cs
- DropShadowBitmapEffect.cs
- Parser.cs
- PermissionRequestEvidence.cs
- ReachSerializer.cs
- DBCommandBuilder.cs
- ToolStrip.cs
- ToolStripDropTargetManager.cs
- UIElementAutomationPeer.cs
- SuppressMessageAttribute.cs
- ScrollChangedEventArgs.cs
- EvidenceTypeDescriptor.cs
- RightsManagementPermission.cs
- GeneralTransform3D.cs
- EntityDataSourceColumn.cs
- IsolationInterop.cs
- DoubleLinkList.cs
- SQLCharsStorage.cs
- DictionaryManager.cs
- SaveLedgerEntryRequest.cs
- GridItemCollection.cs
- OdbcErrorCollection.cs
- ProcessHost.cs
- ReadContentAsBinaryHelper.cs
- RegexCode.cs
- FixedTextContainer.cs
- XmlDocumentFragment.cs
- SequenceRange.cs
- StandardCommandToolStripMenuItem.cs
- XmlDataSourceView.cs
- AutomationAttributeInfo.cs
- JsonFormatWriterGenerator.cs
- LocatorGroup.cs
- ObjectListDataBindEventArgs.cs
- FixedNode.cs
- AppDomainProtocolHandler.cs
- CreateUserWizard.cs
- Rectangle.cs
- DataGridViewLinkCell.cs
- DrawingContextWalker.cs
- UnsafeNativeMethods.cs
- ImageSource.cs
- SecurityState.cs
- ServerIdentity.cs
- QilFunction.cs
- TrackingProfile.cs
- CurrentChangedEventManager.cs
- KeyedCollection.cs
- PropertyRef.cs
- DesignerDataColumn.cs
- RectangleGeometry.cs
- FormsAuthenticationConfiguration.cs
- DataGridViewRowStateChangedEventArgs.cs
- XmlSchemaImport.cs
- StoreItemCollection.cs
- CharEntityEncoderFallback.cs
- StoreContentChangedEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- UnsafeNativeMethodsPenimc.cs
- RectangleHotSpot.cs
- WriteableBitmap.cs
- SqlXml.cs
- WindowsRichEdit.cs
- SqlBulkCopyColumnMappingCollection.cs
- CellTreeNode.cs
- TabPanel.cs
- CodeConditionStatement.cs
- TrackingProfileCache.cs
- RichTextBoxContextMenu.cs
- WindowsButton.cs
- TdsParser.cs
- TaskExceptionHolder.cs
- TreeViewEvent.cs
- SafeCertificateContext.cs
- CopyOnWriteList.cs
- XmlValidatingReader.cs
- UniqueCodeIdentifierScope.cs
- ActivityTrace.cs
- WindowAutomationPeer.cs
- Ray3DHitTestResult.cs
- PropertyEmitterBase.cs
- PageVisual.cs
- ValidationEventArgs.cs
- SqlMultiplexer.cs
- DynamicPropertyHolder.cs
- ObjectDataSourceDisposingEventArgs.cs
- WindowsImpersonationContext.cs
- VirtualPathProvider.cs
- TabPage.cs
- SqlRemoveConstantOrderBy.cs
- SortableBindingList.cs
- QueryInterceptorAttribute.cs
- ScrollableControl.cs
- XmlDeclaration.cs
- SchemaTypeEmitter.cs