Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilReference.cs / 1305376 / QilReference.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil node which is the target of a reference (functions, variables, parameters). /// internal class QilReference : QilNode { // Names longer than 1023 characters cause AV in cscompee.dll, see VSWhidbey 485526 // So we set the internal limit to 1000. Needs to be lower since we might later append // few characters (for example "(2)") if we end up with two same named methods after // the truncation. private const int MaxDebugNameLength = 1000; private string debugName; //----------------------------------------------- // Constructor //----------------------------------------------- ////// Construct a reference /// public QilReference(QilNodeType nodeType) : base(nodeType) { } //----------------------------------------------- // QilReference methods //----------------------------------------------- ////// Name of this reference, preserved for debugging (may be null). /// public string DebugName { get { return this.debugName; } set { if (value.Length > MaxDebugNameLength) value = value.Substring(0, MaxDebugNameLength); this.debugName = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil node which is the target of a reference (functions, variables, parameters). /// internal class QilReference : QilNode { // Names longer than 1023 characters cause AV in cscompee.dll, see VSWhidbey 485526 // So we set the internal limit to 1000. Needs to be lower since we might later append // few characters (for example "(2)") if we end up with two same named methods after // the truncation. private const int MaxDebugNameLength = 1000; private string debugName; //----------------------------------------------- // Constructor //----------------------------------------------- ////// Construct a reference /// public QilReference(QilNodeType nodeType) : base(nodeType) { } //----------------------------------------------- // QilReference methods //----------------------------------------------- ////// Name of this reference, preserved for debugging (may be null). /// public string DebugName { get { return this.debugName; } set { if (value.Length > MaxDebugNameLength) value = value.Substring(0, MaxDebugNameLength); this.debugName = 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
- AutoSizeToolBoxItem.cs
- LongValidator.cs
- Range.cs
- KeyboardNavigation.cs
- CrossSiteScriptingValidation.cs
- NullExtension.cs
- EncryptedType.cs
- TabControlAutomationPeer.cs
- MarkupCompiler.cs
- WebZone.cs
- DLinqTableProvider.cs
- NativeMethods.cs
- QueryRewriter.cs
- JpegBitmapEncoder.cs
- DoWorkEventArgs.cs
- BufferedGraphicsManager.cs
- QilNode.cs
- DataGridItemEventArgs.cs
- OptionalRstParameters.cs
- ApplicationDirectory.cs
- EditorAttribute.cs
- DPCustomTypeDescriptor.cs
- MessagePropertyVariants.cs
- SecurityTokenAuthenticator.cs
- FieldAccessException.cs
- XamlBuildTaskServices.cs
- BamlMapTable.cs
- WebPartRestoreVerb.cs
- SortAction.cs
- MetadataUtilsSmi.cs
- BulletedListEventArgs.cs
- FlowDecisionDesigner.xaml.cs
- PrtCap_Public_Simple.cs
- UnsafeNativeMethods.cs
- ReferentialConstraint.cs
- PolyLineSegment.cs
- CodeIdentifiers.cs
- VSWCFServiceContractGenerator.cs
- HScrollProperties.cs
- NavigationProperty.cs
- QilInvokeEarlyBound.cs
- SelectionItemProviderWrapper.cs
- ContentControl.cs
- MimeXmlImporter.cs
- CodeDirectoryCompiler.cs
- HttpApplicationStateBase.cs
- AdPostCacheSubstitution.cs
- EntityDataReader.cs
- SpeechRecognitionEngine.cs
- RequestTimeoutManager.cs
- TextEndOfLine.cs
- SpecialFolderEnumConverter.cs
- EventLogEntryCollection.cs
- GraphicsPath.cs
- UriTemplateTable.cs
- DBConcurrencyException.cs
- ServicePoint.cs
- MethodMessage.cs
- DataBoundControl.cs
- OleDbParameterCollection.cs
- TypeElement.cs
- Brush.cs
- IndexOutOfRangeException.cs
- AccessKeyManager.cs
- DecimalAnimation.cs
- TextTreeInsertUndoUnit.cs
- RSAPKCS1SignatureFormatter.cs
- TdsParserSessionPool.cs
- RootProfilePropertySettingsCollection.cs
- DataServiceBehavior.cs
- SByteStorage.cs
- Documentation.cs
- JapaneseLunisolarCalendar.cs
- SchemaSetCompiler.cs
- KeyedHashAlgorithm.cs
- OneOfScalarConst.cs
- ClusterRegistryConfigurationProvider.cs
- WebPartCollection.cs
- ProtectedConfigurationProviderCollection.cs
- RegexWorker.cs
- NativeBuffer.cs
- SelectionWordBreaker.cs
- IdentityReference.cs
- OletxDependentTransaction.cs
- RepeatBehavior.cs
- ManipulationDeltaEventArgs.cs
- SubMenuStyle.cs
- BrowserInteropHelper.cs
- PropertyStore.cs
- MetabaseServerConfig.cs
- CommentEmitter.cs
- OleDbParameterCollection.cs
- OperationInvokerBehavior.cs
- HwndMouseInputProvider.cs
- XmlSchemaDocumentation.cs
- PointHitTestParameters.cs
- SevenBitStream.cs
- DBSqlParserTableCollection.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SignalGate.cs