Code:
/ FX-1434 / FX-1434 / 1.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
- SizeConverter.cs
- Section.cs
- WebPartCollection.cs
- TargetInvocationException.cs
- HotCommands.cs
- MyContact.cs
- RepeaterItemEventArgs.cs
- DocumentXPathNavigator.cs
- ContextMenuStrip.cs
- AttributeCollection.cs
- XamlToRtfWriter.cs
- DesignerActionPropertyItem.cs
- PointHitTestResult.cs
- SafeHandles.cs
- SimpleHandlerBuildProvider.cs
- XmlNavigatorStack.cs
- LifetimeServices.cs
- EditableLabelControl.cs
- SuppressIldasmAttribute.cs
- TreeViewDesigner.cs
- ProviderConnectionPointCollection.cs
- CompositeControl.cs
- DesignerForm.cs
- WebPartCatalogCloseVerb.cs
- Mutex.cs
- SystemIPv4InterfaceProperties.cs
- PersistenceTypeAttribute.cs
- DomNameTable.cs
- XmlUTF8TextReader.cs
- _OSSOCK.cs
- GeneralTransform2DTo3D.cs
- RemotingAttributes.cs
- XmlILIndex.cs
- DataGridViewSelectedRowCollection.cs
- SchemaLookupTable.cs
- GridViewColumn.cs
- WebPartMenuStyle.cs
- LockedAssemblyCache.cs
- RowToParametersTransformer.cs
- TreeNodeClickEventArgs.cs
- QuestionEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- AdjustableArrowCap.cs
- SHA512.cs
- oledbmetadatacolumnnames.cs
- ListViewItemMouseHoverEvent.cs
- SafeRightsManagementPubHandle.cs
- SamlAuthorityBinding.cs
- HandleCollector.cs
- VisualBrush.cs
- StreamHelper.cs
- Types.cs
- RefType.cs
- InternalBase.cs
- IntSecurity.cs
- SQLInt32.cs
- KnownTypesHelper.cs
- PathNode.cs
- ButtonColumn.cs
- FormClosedEvent.cs
- ApplicationContext.cs
- ComPlusServiceHost.cs
- Identifier.cs
- ContentValidator.cs
- SignatureHelper.cs
- HandlerMappingMemo.cs
- SpellerHighlightLayer.cs
- BinaryObjectReader.cs
- HMACMD5.cs
- BufferedGraphicsContext.cs
- ObjectListField.cs
- DataGridViewCellParsingEventArgs.cs
- RepeaterItem.cs
- ConnectionsZone.cs
- ComboBoxAutomationPeer.cs
- SecurityManager.cs
- RegistryKey.cs
- ClusterRegistryConfigurationProvider.cs
- WindowsEditBox.cs
- ProxyAttribute.cs
- UserPreferenceChangingEventArgs.cs
- PingOptions.cs
- Globals.cs
- ErrorWebPart.cs
- OrderedDictionaryStateHelper.cs
- TextLine.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- PackageRelationshipSelector.cs
- WebHttpDispatchOperationSelectorData.cs
- WebResponse.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- StackBuilderSink.cs
- ProjectionNode.cs
- QuotaThrottle.cs
- UIAgentAsyncParams.cs
- FunctionNode.cs
- BridgeDataRecord.cs
- Point4DConverter.cs
- GenericEnumerator.cs
- WorkflowViewStateService.cs