Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / RuntimeWrappedException.cs / 1305376 / RuntimeWrappedException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: RuntimeWrappedException ** ** ** Purpose: The exception class uses to wrap all non-CLS compliant exceptions. ** ** =============================================================================*/ namespace System.Runtime.CompilerServices { using System; using System.Runtime.Serialization; using System.Runtime.Remoting; using System.Security.Permissions; using System.Diagnostics.Contracts; [Serializable] public sealed class RuntimeWrappedException : Exception { private RuntimeWrappedException(Object thrownObject) : base(Environment.GetResourceString("RuntimeWrappedException")) { SetErrorCode(System.__HResults.COR_E_RUNTIMEWRAPPED); m_wrappedException = thrownObject; } public Object WrappedException { get { return m_wrappedException; } } private Object m_wrappedException; [System.Security.SecurityCritical] // auto-generated_required public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { throw new ArgumentNullException("info"); } Contract.EndContractBlock(); base.GetObjectData(info, context); info.AddValue("WrappedException", m_wrappedException, typeof(Object)); } internal RuntimeWrappedException(SerializationInfo info, StreamingContext context) : base(info, context) { m_wrappedException = info.GetValue("WrappedException", typeof(Object)); } } } // 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
- SpellCheck.cs
- KeyboardNavigation.cs
- NativeActivityFaultContext.cs
- AppDomainUnloadedException.cs
- ContentTextAutomationPeer.cs
- TransformDescriptor.cs
- SafeNativeMethods.cs
- Attributes.cs
- ContainerUtilities.cs
- TemplateBindingExpression.cs
- ManagedCodeMarkers.cs
- DataGridViewCellParsingEventArgs.cs
- DataRowView.cs
- PagesSection.cs
- LOSFormatter.cs
- SqlDataRecord.cs
- _SslStream.cs
- SQLSingleStorage.cs
- SimpleRecyclingCache.cs
- ProviderConnectionPointCollection.cs
- WebPermission.cs
- MethodBuilder.cs
- LogicalExpr.cs
- CustomAttributeBuilder.cs
- DataGridViewRowCancelEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- LayoutExceptionEventArgs.cs
- odbcmetadatacolumnnames.cs
- CodeExporter.cs
- MachineKeySection.cs
- PreservationFileWriter.cs
- MetadataSource.cs
- MenuItemBindingCollection.cs
- ControlCollection.cs
- WebHeaderCollection.cs
- BitArray.cs
- Types.cs
- SizeAnimationClockResource.cs
- OrderablePartitioner.cs
- DataGridHelper.cs
- LinearKeyFrames.cs
- DbParameterHelper.cs
- ASCIIEncoding.cs
- SymmetricAlgorithm.cs
- DataControlFieldCollection.cs
- WSHttpSecurity.cs
- Substitution.cs
- HierarchicalDataTemplate.cs
- ThumbAutomationPeer.cs
- ContentHostHelper.cs
- XmlSerializationReader.cs
- ThreadNeutralSemaphore.cs
- Int16AnimationUsingKeyFrames.cs
- PerfCounterSection.cs
- TimerElapsedEvenArgs.cs
- TextBox.cs
- KoreanLunisolarCalendar.cs
- CustomErrorsSectionWrapper.cs
- Matrix3D.cs
- NamespaceQuery.cs
- FormViewRow.cs
- WorkflowServiceBehavior.cs
- RequestCachePolicy.cs
- SelectionRangeConverter.cs
- TrustManagerPromptUI.cs
- SHA1.cs
- XmlSerializerNamespaces.cs
- XmlDataCollection.cs
- DiscreteKeyFrames.cs
- RuntimeCompatibilityAttribute.cs
- FilterQuery.cs
- RunClient.cs
- VariableElement.cs
- Label.cs
- HandlerWithFactory.cs
- BaseCodeDomTreeGenerator.cs
- AuthorizationSection.cs
- Listbox.cs
- DirectoryInfo.cs
- ObjectManager.cs
- DateTimeValueSerializer.cs
- SspiSafeHandles.cs
- hebrewshape.cs
- CodeParameterDeclarationExpression.cs
- RecommendedAsConfigurableAttribute.cs
- ChtmlMobileTextWriter.cs
- SafeLocalAllocation.cs
- LocatorBase.cs
- ObjectQuery_EntitySqlExtensions.cs
- PropertyInfoSet.cs
- WebServiceBindingAttribute.cs
- DataGridViewCheckBoxColumn.cs
- ReferentialConstraint.cs
- RepeaterDataBoundAdapter.cs
- DebugTrace.cs
- OlePropertyStructs.cs
- SplitterDesigner.cs
- Rect.cs
- Propagator.ExtentPlaceholderCreator.cs
- SqlGenerator.cs