Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeCastExpression.cs / 1 / CodeCastExpression.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// [ 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; } } } }/// The expression to cast. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IndexedEnumerable.cs
- PrintDialog.cs
- HashRepartitionEnumerator.cs
- ReadonlyMessageFilter.cs
- EncodingNLS.cs
- RootProjectionNode.cs
- WebPartUserCapability.cs
- OrderedDictionary.cs
- SortKey.cs
- BinaryWriter.cs
- BasePropertyDescriptor.cs
- WindowsFormsHost.cs
- HtmlInputSubmit.cs
- ClientSession.cs
- SqlCachedBuffer.cs
- QilBinary.cs
- DependencyObject.cs
- DynamicDataResources.Designer.cs
- SemanticTag.cs
- CreateUserWizard.cs
- DataServiceException.cs
- hresults.cs
- FastEncoderStatics.cs
- OdbcReferenceCollection.cs
- DataGridViewRowCollection.cs
- RawStylusInputReport.cs
- Clause.cs
- RoleManagerSection.cs
- UnsafeNativeMethods.cs
- BamlResourceSerializer.cs
- BindingWorker.cs
- HttpListenerRequest.cs
- LazyTextWriterCreator.cs
- TextSimpleMarkerProperties.cs
- TextEditor.cs
- JoinTreeNode.cs
- HostingPreferredMapPath.cs
- ServicesUtilities.cs
- SoapException.cs
- TemplateControlCodeDomTreeGenerator.cs
- OrderedDictionary.cs
- DynamicUpdateCommand.cs
- OutputCacheSettings.cs
- Manipulation.cs
- ComponentGlyph.cs
- SingleAnimationUsingKeyFrames.cs
- DataGridViewAdvancedBorderStyle.cs
- TabControlToolboxItem.cs
- SoapTypeAttribute.cs
- AttributeCollection.cs
- XmlSchemaSet.cs
- AdRotator.cs
- DifferencingCollection.cs
- RuleAttributes.cs
- MatrixTransform3D.cs
- RouteValueExpressionBuilder.cs
- DataGridRowDetailsEventArgs.cs
- localization.cs
- BaseDataList.cs
- ControlPersister.cs
- MouseGestureConverter.cs
- Expression.DebuggerProxy.cs
- ValidatorCompatibilityHelper.cs
- SyncMethodInvoker.cs
- HyperLinkColumn.cs
- DbProviderServices.cs
- MasterPageBuildProvider.cs
- SmtpNtlmAuthenticationModule.cs
- GridViewUpdateEventArgs.cs
- ListItemDetailViewAttribute.cs
- DeferredReference.cs
- WebPartMovingEventArgs.cs
- WebMessageEncodingElement.cs
- DataStreamFromComStream.cs
- StackSpiller.Bindings.cs
- xmlNames.cs
- SystemShuttingDownException.cs
- CodeRemoveEventStatement.cs
- FamilyCollection.cs
- clipboard.cs
- InboundActivityHelper.cs
- Throw.cs
- xmlNames.cs
- SkinBuilder.cs
- NumericPagerField.cs
- TextRangeSerialization.cs
- DesignerActionTextItem.cs
- DoubleAnimationUsingPath.cs
- Point3DCollection.cs
- TypefaceMetricsCache.cs
- XmlQueryOutput.cs
- FontCollection.cs
- CqlLexerHelpers.cs
- ConfigurationElement.cs
- RepeatBehavior.cs
- DescendantOverDescendantQuery.cs
- Size3D.cs
- ToolStrip.cs
- CustomAttributeSerializer.cs
- TrustSection.cs