Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / ApplicationServices / KnownTypesProvider.cs / 1305376 / KnownTypesProvider.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; using System.Reflection; using System.Web.Profile; namespace System.Web.ApplicationServices { public static class KnownTypesProvider { public static Type[] GetKnownTypes(ICustomAttributeProvider knownTypeAttributeTarget) { if (ProfileBase.Properties == null) return new Type[0]; Type[] retArray = new Type[ProfileBase.Properties.Count]; int i = 0; foreach (SettingsProperty property in ProfileBase.Properties) { retArray[i++] = property.PropertyType; } return retArray; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; using System.Reflection; using System.Web.Profile; namespace System.Web.ApplicationServices { public static class KnownTypesProvider { public static Type[] GetKnownTypes(ICustomAttributeProvider knownTypeAttributeTarget) { if (ProfileBase.Properties == null) return new Type[0]; Type[] retArray = new Type[ProfileBase.Properties.Count]; int i = 0; foreach (SettingsProperty property in ProfileBase.Properties) { retArray[i++] = property.PropertyType; } return retArray; } } } // 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
- RootBrowserWindowAutomationPeer.cs
- ZoneIdentityPermission.cs
- MetadataCollection.cs
- ExpandableObjectConverter.cs
- DebugView.cs
- AnimationLayer.cs
- SslStream.cs
- HttpPostedFile.cs
- CodeNamespaceCollection.cs
- ToolStripSplitStackLayout.cs
- LateBoundBitmapDecoder.cs
- ConnectionStringsSection.cs
- SqlClientWrapperSmiStream.cs
- CategoryValueConverter.cs
- SplashScreen.cs
- CallbackValidator.cs
- SmiEventSink_DeferedProcessing.cs
- TransformerInfo.cs
- Renderer.cs
- WebBrowserSiteBase.cs
- Table.cs
- DataServiceRequest.cs
- ScriptResourceAttribute.cs
- ToolboxDataAttribute.cs
- FixedMaxHeap.cs
- TdsRecordBufferSetter.cs
- Filter.cs
- ArcSegment.cs
- NetworkInformationPermission.cs
- ExpressionBindings.cs
- AttributeData.cs
- XmlQualifiedNameTest.cs
- RtfFormatStack.cs
- PageThemeParser.cs
- HebrewNumber.cs
- TaskFileService.cs
- ConsumerConnectionPoint.cs
- ExponentialEase.cs
- Propagator.Evaluator.cs
- UrlEncodedParameterWriter.cs
- WindowsFormsHelpers.cs
- LockingPersistenceProvider.cs
- ConfigXmlCDataSection.cs
- TimeoutException.cs
- RoutedPropertyChangedEventArgs.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DefaultParameterValueAttribute.cs
- BitmapEffectInputData.cs
- TreeViewItemAutomationPeer.cs
- ObjectContextServiceProvider.cs
- ExclusiveTcpListener.cs
- DeferredTextReference.cs
- DispatchWrapper.cs
- DataTableClearEvent.cs
- DebugControllerThread.cs
- StreamReader.cs
- TextRangeBase.cs
- VariableBinder.cs
- XPathNavigatorKeyComparer.cs
- ContextMenu.cs
- SafeNativeMethods.cs
- XsdBuildProvider.cs
- Pointer.cs
- RefreshEventArgs.cs
- XsltQilFactory.cs
- XamlBrushSerializer.cs
- WrappedKeySecurityTokenParameters.cs
- ByteStream.cs
- CommonGetThemePartSize.cs
- LazyInitializer.cs
- DataGridLinkButton.cs
- BitmapPalettes.cs
- FieldAccessException.cs
- BStrWrapper.cs
- PagedControl.cs
- Glyph.cs
- DesignOnlyAttribute.cs
- ScalarConstant.cs
- MetadataItemEmitter.cs
- DataGridToolTip.cs
- CacheVirtualItemsEvent.cs
- ConfigXmlComment.cs
- PointHitTestParameters.cs
- MetadataFile.cs
- ScrollChrome.cs
- PinProtectionHelper.cs
- FormsAuthenticationEventArgs.cs
- ElementFactory.cs
- HttpCookieCollection.cs
- HandleRef.cs
- QueryAccessibilityHelpEvent.cs
- AttributeData.cs
- Point3D.cs
- SoapReflectionImporter.cs
- LookupBindingPropertiesAttribute.cs
- Object.cs
- PagesSection.cs
- ArgumentNullException.cs
- RequiredFieldValidator.cs
- RegisteredHiddenField.cs