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
- DataRecord.cs
- KeyGesture.cs
- ListViewUpdateEventArgs.cs
- SequentialUshortCollection.cs
- AssemblyCacheEntry.cs
- ClaimTypeElement.cs
- AxisAngleRotation3D.cs
- AssertFilter.cs
- WebRequest.cs
- tooltip.cs
- QueueProcessor.cs
- ScriptRef.cs
- EventMap.cs
- WebUtil.cs
- DoubleAnimationUsingPath.cs
- Figure.cs
- URLMembershipCondition.cs
- DurableTimerExtension.cs
- Helpers.cs
- ZipIOLocalFileDataDescriptor.cs
- OLEDB_Util.cs
- NamespaceMapping.cs
- ColumnMapTranslator.cs
- LinqDataSourceUpdateEventArgs.cs
- TypeConverterAttribute.cs
- DefaultEventAttribute.cs
- RegexMatchCollection.cs
- SecurityKeyIdentifierClause.cs
- PartialTrustHelpers.cs
- DataGrid.cs
- XmlSchemaAttributeGroupRef.cs
- Configuration.cs
- Utils.cs
- PowerModeChangedEventArgs.cs
- Button.cs
- _ServiceNameStore.cs
- DataComponentGenerator.cs
- AuthorizationSection.cs
- WindowsFormsLinkLabel.cs
- SwitchCase.cs
- BitmapEffect.cs
- DbConnectionPoolIdentity.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- TextElement.cs
- ParsedAttributeCollection.cs
- IHttpResponseInternal.cs
- FixedStringLookup.cs
- WebPartChrome.cs
- SiteIdentityPermission.cs
- Point4D.cs
- IdleTimeoutMonitor.cs
- XmlSchemaSet.cs
- TextEditor.cs
- BidOverLoads.cs
- XamlSerializerUtil.cs
- PathData.cs
- APCustomTypeDescriptor.cs
- SoapEnumAttribute.cs
- TextElementCollection.cs
- ErrorHandlingReceiver.cs
- FileLogRecordHeader.cs
- OutputScope.cs
- Knowncolors.cs
- InternalsVisibleToAttribute.cs
- InkCanvasSelectionAdorner.cs
- SatelliteContractVersionAttribute.cs
- RegexCaptureCollection.cs
- NativeMethods.cs
- SafeMILHandle.cs
- TextEffect.cs
- OdbcEnvironment.cs
- HiddenFieldPageStatePersister.cs
- ResourcePool.cs
- RegexFCD.cs
- ProfileProvider.cs
- ToolStripMenuItem.cs
- StandardBindingOptionalReliableSessionElement.cs
- SQLSingle.cs
- DynamicResourceExtensionConverter.cs
- SystemWebSectionGroup.cs
- SurrogateEncoder.cs
- DataColumnMappingCollection.cs
- SchemaNotation.cs
- RsaSecurityTokenAuthenticator.cs
- ChildrenQuery.cs
- FunctionNode.cs
- Helpers.cs
- SecurityException.cs
- PersonalizableAttribute.cs
- RIPEMD160Managed.cs
- SamlSubjectStatement.cs
- TraceLevelStore.cs
- RichTextBoxConstants.cs
- TextTrailingCharacterEllipsis.cs
- XmlSchema.cs
- ToolboxItemCollection.cs
- DebugHandleTracker.cs
- ChtmlPageAdapter.cs
- KeyboardNavigation.cs
- SqlCacheDependency.cs