Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Sys / System / Configuration / TypeUtil.cs / 1 / TypeUtil.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Reflection;
using System.Security;
using System.Security.Permissions;
namespace System.Configuration {
internal static class TypeUtil {
[ReflectionPermission(SecurityAction.Assert, Flags=ReflectionPermissionFlag.TypeInformation | ReflectionPermissionFlag.MemberAccess)]
static internal object CreateInstanceWithReflectionPermission(string typeString) {
Type type = Type.GetType(typeString, true); // catch the errors and report them
object result = Activator.CreateInstance(type, true); // create non-public types
return result;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- sqlcontext.cs
- RenderData.cs
- DataFormat.cs
- DateTimeHelper.cs
- CloudCollection.cs
- GenericAuthenticationEventArgs.cs
- DeclaredTypeValidatorAttribute.cs
- PathFigure.cs
- IndicFontClient.cs
- TypeListConverter.cs
- ImageInfo.cs
- ContextStack.cs
- DSASignatureFormatter.cs
- Rect3DConverter.cs
- DropTarget.cs
- BamlRecords.cs
- DataBoundLiteralControl.cs
- EdmConstants.cs
- SemaphoreSecurity.cs
- AddInStore.cs
- StreamFormatter.cs
- AspNetSynchronizationContext.cs
- ZipArchive.cs
- ComponentEvent.cs
- JavaScriptString.cs
- RouteTable.cs
- QuaternionValueSerializer.cs
- DataBoundControlHelper.cs
- PropertyEntry.cs
- OracleMonthSpan.cs
- SafeNativeMethods.cs
- XmlSchemaInferenceException.cs
- CrossSiteScriptingValidation.cs
- MiniCustomAttributeInfo.cs
- MailWriter.cs
- FrugalList.cs
- BitmapCacheBrush.cs
- ProviderManager.cs
- WebColorConverter.cs
- CodeGeneratorOptions.cs
- ToolStripDropDown.cs
- FrameworkRichTextComposition.cs
- GridItemProviderWrapper.cs
- JapaneseLunisolarCalendar.cs
- SmtpFailedRecipientException.cs
- UIPropertyMetadata.cs
- InstalledFontCollection.cs
- _AutoWebProxyScriptEngine.cs
- ElementUtil.cs
- MetadataItemEmitter.cs
- ProviderUtil.cs
- MailAddressCollection.cs
- IgnoreDeviceFilterElementCollection.cs
- XmlReflectionImporter.cs
- NoClickablePointException.cs
- QuadTree.cs
- WebServiceTypeData.cs
- ToolboxItemFilterAttribute.cs
- ServiceDescriptionImporter.cs
- SubpageParagraph.cs
- ObjectDataSourceMethodEventArgs.cs
- ErrorEventArgs.cs
- GeneralTransform3DCollection.cs
- RemotingSurrogateSelector.cs
- DebuggerAttributes.cs
- CheckBox.cs
- sqlnorm.cs
- AdapterDictionary.cs
- UncommonField.cs
- WorkItem.cs
- ImageResources.Designer.cs
- WorkflowRuntimeBehavior.cs
- RegistrySecurity.cs
- InterleavedZipPartStream.cs
- FontClient.cs
- OuterGlowBitmapEffect.cs
- GPRECTF.cs
- XmlIlVisitor.cs
- HttpConfigurationSystem.cs
- HWStack.cs
- altserialization.cs
- ManagedFilter.cs
- RelationshipNavigation.cs
- ItemCheckEvent.cs
- UnsafeNativeMethods.cs
- EncodingStreamWrapper.cs
- ModulesEntry.cs
- VarInfo.cs
- UnknownWrapper.cs
- ProvideValueServiceProvider.cs
- XmlSchemaAnnotation.cs
- InfoCardSymmetricAlgorithm.cs
- RegexNode.cs
- OnOperation.cs
- BuildResultCache.cs
- DataGridState.cs
- ExceptionUtil.cs
- PaintEvent.cs
- TimerElapsedEvenArgs.cs
- FormParameter.cs