Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeCastExpression.cs / 1305376 / CodeCastExpression.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeCastExpression : CodeExpression { private CodeTypeReference targetType; private CodeExpression expression; ////// Represents a /// type cast expression. /// ////// public CodeCastExpression() { } ////// Initializes a new instance of ///. /// /// public CodeCastExpression(CodeTypeReference targetType, CodeExpression expression) { TargetType = targetType; Expression = expression; } ////// Initializes a new instance of ///using the specified /// parameters. /// /// public CodeCastExpression(string targetType, CodeExpression expression) { TargetType = new CodeTypeReference(targetType); Expression = expression; } ///[To be supplied.] ////// public CodeCastExpression(Type targetType, CodeExpression expression) { TargetType = new CodeTypeReference(targetType); Expression = expression; } ///[To be supplied.] ////// public CodeTypeReference TargetType { get { if (targetType == null) { targetType = new CodeTypeReference(""); } return targetType; } set { targetType = value; } } ////// The target type of the cast. /// ////// public CodeExpression Expression { get { return expression; } set { expression = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The expression to cast. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeCastExpression : CodeExpression { private CodeTypeReference targetType; private CodeExpression expression; ////// Represents a /// type cast expression. /// ////// public CodeCastExpression() { } ////// Initializes a new instance of ///. /// /// public CodeCastExpression(CodeTypeReference targetType, CodeExpression expression) { TargetType = targetType; Expression = expression; } ////// Initializes a new instance of ///using the specified /// parameters. /// /// public CodeCastExpression(string targetType, CodeExpression expression) { TargetType = new CodeTypeReference(targetType); Expression = expression; } ///[To be supplied.] ////// public CodeCastExpression(Type targetType, CodeExpression expression) { TargetType = new CodeTypeReference(targetType); Expression = expression; } ///[To be supplied.] ////// public CodeTypeReference TargetType { get { if (targetType == null) { targetType = new CodeTypeReference(""); } return targetType; } set { targetType = value; } } ////// The target type of the cast. /// ////// public CodeExpression Expression { get { return expression; } set { expression = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The expression to cast. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceListeners.cs
- HtmlDocument.cs
- WindowsTreeView.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Operator.cs
- WindowInteropHelper.cs
- CaseInsensitiveHashCodeProvider.cs
- TraceHelpers.cs
- Sql8ExpressionRewriter.cs
- EncodingInfo.cs
- StreamWithDictionary.cs
- Int16AnimationUsingKeyFrames.cs
- CodeAttachEventStatement.cs
- DataGridViewAddColumnDialog.cs
- CodeSubDirectoriesCollection.cs
- BitStack.cs
- HMACSHA1.cs
- WebBrowsableAttribute.cs
- FixedSOMElement.cs
- CaretElement.cs
- _SingleItemRequestCache.cs
- EventTrigger.cs
- MonikerProxyAttribute.cs
- CodeArrayCreateExpression.cs
- SQLInt64Storage.cs
- CodeDelegateCreateExpression.cs
- Helpers.cs
- PerfService.cs
- TypeSource.cs
- TargetControlTypeCache.cs
- PropertyGridCommands.cs
- TypeLibConverter.cs
- EvidenceBase.cs
- DriveNotFoundException.cs
- xmlformatgeneratorstatics.cs
- InputScope.cs
- Pointer.cs
- NonVisualControlAttribute.cs
- _DigestClient.cs
- XPathScanner.cs
- BitStack.cs
- StringAttributeCollection.cs
- Registration.cs
- DataBoundControlHelper.cs
- TokenCreationParameter.cs
- DictionaryTraceRecord.cs
- RawTextInputReport.cs
- EditCommandColumn.cs
- Regex.cs
- documentsequencetextcontainer.cs
- StateChangeEvent.cs
- LOSFormatter.cs
- FileFormatException.cs
- ConfigurationPropertyAttribute.cs
- RoutedEventConverter.cs
- AssociationTypeEmitter.cs
- HeaderLabel.cs
- HWStack.cs
- XmlSchemaSubstitutionGroup.cs
- WebPartHeaderCloseVerb.cs
- PersonalizationProvider.cs
- CardSpaceException.cs
- XmlElementAttribute.cs
- ExpressionNode.cs
- CountAggregationOperator.cs
- ServiceHttpHandlerFactory.cs
- WebPartConnection.cs
- RangeValuePattern.cs
- TextTreeTextBlock.cs
- SqlConnectionStringBuilder.cs
- Line.cs
- ObjectCloneHelper.cs
- ListBoxItemWrapperAutomationPeer.cs
- MediaTimeline.cs
- StateMachine.cs
- ObjectItemCollection.cs
- TablePatternIdentifiers.cs
- HttpCacheVary.cs
- SecurityPermission.cs
- HtmlInputReset.cs
- MetabaseSettings.cs
- StorageEntitySetMapping.cs
- _AuthenticationState.cs
- AliasedSlot.cs
- CannotUnloadAppDomainException.cs
- FigureParaClient.cs
- UnsafeNativeMethods.cs
- SqlCacheDependencyDatabase.cs
- WebBrowserSiteBase.cs
- EnvironmentPermission.cs
- ISAPIRuntime.cs
- XmlnsDictionary.cs
- WindowHideOrCloseTracker.cs
- XPathNavigatorKeyComparer.cs
- FileCodeGroup.cs
- ItemCheckEvent.cs
- SchemaTypeEmitter.cs
- TypeNameConverter.cs
- CacheOutputQuery.cs
- Message.cs