Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / ComponentConverter.cs / 1 / ComponentConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ComponentConverter : ReferenceConverter { ///Provides a type converter to convert component objects to and /// from various other representations. ////// public ComponentConverter(Type type) : base(type) { } ////// Initializes a new instance of the ///class. /// /// /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return TypeDescriptor.GetProperties(value, attributes); } ///Gets a collection of properties for the type of component /// specified by the value /// parameter. ////// /// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether this object supports properties using the /// specified context. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ComponentConverter : ReferenceConverter { ///Provides a type converter to convert component objects to and /// from various other representations. ////// public ComponentConverter(Type type) : base(type) { } ////// Initializes a new instance of the ///class. /// /// /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return TypeDescriptor.GetProperties(value, attributes); } ///Gets a collection of properties for the type of component /// specified by the value /// parameter. ////// /// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets a value indicating whether this object supports properties using the /// specified context. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CollectionTraceRecord.cs
- xmlNames.cs
- IncrementalReadDecoders.cs
- OdbcErrorCollection.cs
- CheckBoxList.cs
- RowVisual.cs
- Focus.cs
- EmptyImpersonationContext.cs
- BigInt.cs
- FilterQueryOptionExpression.cs
- SimpleHandlerBuildProvider.cs
- GcSettings.cs
- WizardForm.cs
- BooleanSwitch.cs
- XmlSignificantWhitespace.cs
- MultipleViewProviderWrapper.cs
- LeftCellWrapper.cs
- NameObjectCollectionBase.cs
- PointLightBase.cs
- StringUtil.cs
- ListViewInsertEventArgs.cs
- NotConverter.cs
- PerformanceCounterPermissionAttribute.cs
- PublisherIdentityPermission.cs
- DropSource.cs
- ToolStripContainer.cs
- SecurityElement.cs
- FixedNode.cs
- TreeNodeMouseHoverEvent.cs
- ConfigurationLocationCollection.cs
- RegexReplacement.cs
- FrameworkElementFactoryMarkupObject.cs
- Selector.cs
- CharKeyFrameCollection.cs
- HtmlInputRadioButton.cs
- DebugTraceHelper.cs
- UIElementIsland.cs
- MemberInitExpression.cs
- TraceContextEventArgs.cs
- ProcessModelSection.cs
- oledbconnectionstring.cs
- XsdValidatingReader.cs
- NamedObject.cs
- path.cs
- DataGridViewDataConnection.cs
- followingsibling.cs
- TextViewBase.cs
- ObjectDataSourceMethodEditor.cs
- PropertyPathConverter.cs
- MessageParameterAttribute.cs
- DataServiceRequestException.cs
- LinearGradientBrush.cs
- SvcMapFile.cs
- SymbolEqualComparer.cs
- LogExtentCollection.cs
- CustomErrorsSection.cs
- FileRecordSequenceHelper.cs
- ActiveXContainer.cs
- EntityReference.cs
- MsmqTransportSecurity.cs
- DeferredElementTreeState.cs
- MessageSmuggler.cs
- XmlNodeList.cs
- DataControlImageButton.cs
- MediaScriptCommandRoutedEventArgs.cs
- ClientTarget.cs
- DateTimeConverter.cs
- InputReportEventArgs.cs
- DoubleStorage.cs
- Image.cs
- XmlILTrace.cs
- AuthenticateEventArgs.cs
- EventLogPermissionAttribute.cs
- SiteMapNodeItemEventArgs.cs
- NodeFunctions.cs
- BackgroundWorker.cs
- AsymmetricKeyExchangeDeformatter.cs
- CodeLinePragma.cs
- GeneratedView.cs
- SessionIDManager.cs
- Margins.cs
- Win32Native.cs
- MeshGeometry3D.cs
- MemberDescriptor.cs
- BindingExpression.cs
- RuntimeResourceSet.cs
- SiteMapDataSourceDesigner.cs
- selecteditemcollection.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- Int32Rect.cs
- HtmlInputButton.cs
- BoundField.cs
- QilXmlReader.cs
- SelectionRangeConverter.cs
- DbExpressionBuilder.cs
- SymbolResolver.cs
- WindowsUpDown.cs
- UIAgentCrashedException.cs
- CompositeFontInfo.cs
- EditorPartChrome.cs