Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / ExpandableObjectConverter.cs / 1 / ExpandableObjectConverter.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using Microsoft.Win32;
using System.Collections;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides
/// a type converter to convert expandable objects to and from various
/// other representations.
///
[HostProtection(SharedState = true)]
public class ExpandableObjectConverter : TypeConverter {
///
///
/// Initializes a new instance of the System.ComponentModel.ExpandableObjectConverter class.
///
///
public ExpandableObjectConverter() {
}
///
///
/// Gets a collection of properties for the type of object
/// specified by the value
/// parameter.
///
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
return TypeDescriptor.GetProperties(value, attributes);
}
///
///
/// Gets a value indicating
/// whether this object supports properties using the
/// specified context.
///
public override bool GetPropertiesSupported(ITypeDescriptorContext context) {
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using Microsoft.Win32;
using System.Collections;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides
/// a type converter to convert expandable objects to and from various
/// other representations.
///
[HostProtection(SharedState = true)]
public class ExpandableObjectConverter : TypeConverter {
///
///
/// Initializes a new instance of the System.ComponentModel.ExpandableObjectConverter class.
///
///
public ExpandableObjectConverter() {
}
///
///
/// Gets a collection of properties for the type of object
/// specified by the value
/// parameter.
///
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
return TypeDescriptor.GetProperties(value, attributes);
}
///
///
/// Gets a value indicating
/// whether this object supports properties using the
/// specified context.
///
public override bool GetPropertiesSupported(ITypeDescriptorContext context) {
return true;
}
}
}
// 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
- SystemIPGlobalStatistics.cs
- MetadataImporterQuotas.cs
- ChtmlTextWriter.cs
- BamlResourceContent.cs
- MarkupCompiler.cs
- RuleSetBrowserDialog.cs
- ExtensionDataReader.cs
- XsdDuration.cs
- ResourceDefaultValueAttribute.cs
- LinearKeyFrames.cs
- GradientBrush.cs
- LocationUpdates.cs
- Sql8ConformanceChecker.cs
- ParseHttpDate.cs
- TextRangeEditLists.cs
- SpecialTypeDataContract.cs
- SqlStream.cs
- KeySpline.cs
- UnsafeNativeMethods.cs
- AutomationPeer.cs
- Int64Animation.cs
- InkCanvasAutomationPeer.cs
- ValidationRuleCollection.cs
- ClientCredentialsSecurityTokenManager.cs
- UncommonField.cs
- ExtendedProperty.cs
- precedingsibling.cs
- RadialGradientBrush.cs
- BitmapCacheBrush.cs
- ToolStripLocationCancelEventArgs.cs
- GenericWebPart.cs
- EventLogPermissionEntry.cs
- TemplateBamlRecordReader.cs
- NavigationProperty.cs
- DataGridViewComboBoxColumnDesigner.cs
- HijriCalendar.cs
- MbpInfo.cs
- Debug.cs
- WFItemsToSpacerVisibility.cs
- OleDbEnumerator.cs
- RepeatButton.cs
- AttributeAction.cs
- XamlGridLengthSerializer.cs
- Request.cs
- PieceDirectory.cs
- Currency.cs
- Brush.cs
- RewritingProcessor.cs
- UnsafeNativeMethods.cs
- WithStatement.cs
- XLinq.cs
- Brush.cs
- Missing.cs
- FixedSOMSemanticBox.cs
- MultiDataTrigger.cs
- parserscommon.cs
- View.cs
- DateBoldEvent.cs
- MsmqIntegrationBindingElement.cs
- JpegBitmapDecoder.cs
- XmlConvert.cs
- DoubleCollectionConverter.cs
- RecognizedWordUnit.cs
- DtrList.cs
- BlurBitmapEffect.cs
- FastPropertyAccessor.cs
- WorkflowControlEndpoint.cs
- FilterableData.cs
- ConcurrentStack.cs
- Int32RectValueSerializer.cs
- XsltSettings.cs
- ReliabilityContractAttribute.cs
- XPathSelectionIterator.cs
- WebConvert.cs
- EntityWrapperFactory.cs
- DatePickerDateValidationErrorEventArgs.cs
- XdrBuilder.cs
- PathGeometry.cs
- InternalPermissions.cs
- ColumnWidthChangingEvent.cs
- ObjectParameter.cs
- CultureInfoConverter.cs
- BitArray.cs
- GuidelineCollection.cs
- TextSpan.cs
- SqlParameterizer.cs
- FormViewDeletedEventArgs.cs
- PeerCollaborationPermission.cs
- Automation.cs
- ToolStripSystemRenderer.cs
- DataSource.cs
- URLAttribute.cs
- IntegrationExceptionEventArgs.cs
- XmlDownloadManager.cs
- DataQuery.cs
- AnimationTimeline.cs
- EnumUnknown.cs
- SHA512Managed.cs
- CompositeTypefaceMetrics.cs
- GroupStyle.cs