184 lines
12 KiB
XML
184 lines
12 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<Type Name="CollectionConverter" FullName="System.ComponentModel.CollectionConverter">
|
||
|
<TypeSignature Language="C#" Value="public class CollectionConverter : System.ComponentModel.TypeConverter" Maintainer="auto" />
|
||
|
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CollectionConverter extends System.ComponentModel.TypeConverter" />
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyName>System</AssemblyName>
|
||
|
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
|
||
|
<AssemblyVersion>1.0.3300.0</AssemblyVersion>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||
|
<Base>
|
||
|
<BaseTypeName>System.ComponentModel.TypeConverter</BaseTypeName>
|
||
|
</Base>
|
||
|
<Interfaces />
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>The <see cref="Overload:System.ComponentModel.CollectionConverter.GetProperties" /> method for this type converter always returns null, and the <see cref="M:System.ComponentModel.TypeConverter.GetPropertiesSupported" /> method always returns false.</para>
|
||
|
<para>For more information about type converters, see the <see cref="T:System.ComponentModel.TypeConverter" /> base class and <format type="text/html"><a href="90373a3f-d8c8-492d-841c-945d62393c56">How to: Implement a Type Converter</a></format>.</para>
|
||
|
<block subset="none" type="note">
|
||
|
<para>You should never create an instance of the <see cref="T:System.ComponentModel.CollectionConverter" /> class. Instead, call the <see cref="M:System.ComponentModel.TypeDescriptor.GetConverter(System.Object)" /> method of the <see cref="T:System.ComponentModel.TypeDescriptor" /> class. For more information, see the examples in the <see cref="T:System.ComponentModel.TypeConverter" /> base class.</para>
|
||
|
</block>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Provides a type converter to convert collection objects to and from various other representations.</para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
<Members>
|
||
|
<Member MemberName=".ctor">
|
||
|
<MemberSignature Language="C#" Value="public CollectionConverter ();" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||
|
<MemberType>Constructor</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue />
|
||
|
<Parameters />
|
||
|
<Docs>
|
||
|
<remarks>To be added</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Initializes a new instance of the <see cref="T:System.ComponentModel.CollectionConverter" /> class. </para>
|
||
|
</summary>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="ConvertTo">
|
||
|
<MemberSignature Language="C#" Value="public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object ConvertTo(class System.ComponentModel.ITypeDescriptorContext context, class System.Globalization.CultureInfo culture, object value, class System.Type destinationType) cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Object</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
<Parameter Name="context" Type="System.ComponentModel.ITypeDescriptorContext" />
|
||
|
<Parameter Name="culture" Type="System.Globalization.CultureInfo" />
|
||
|
<Parameter Name="value" Type="System.Object" />
|
||
|
<Parameter Name="destinationType" Type="System.Type" />
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>The <paramref name="context" /> parameter can be used to extract additional information about the environment this converter is being invoked from. This can be null, so always check. Also, properties on the context object can return null.</para>
|
||
|
<block subset="none" type="note">
|
||
|
<para>The converted result will be shown in the property browser. For example, if you are converting a char collection into a string, it will be displayed as char[] collection.</para>
|
||
|
</block>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Converts the given value object to the specified destination type.</para>
|
||
|
</summary>
|
||
|
<returns>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>An <see cref="T:System.Object" /> that represents the converted value.</para>
|
||
|
</returns>
|
||
|
<param name="context">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context. </param>
|
||
|
<param name="culture">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />The culture to which <paramref name="value" /> will be converted.</param>
|
||
|
<param name="value">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Object" /> to convert. This parameter must inherit from <see cref="T:System.Collections.ICollection" />. </param>
|
||
|
<param name="destinationType">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Type" /> to convert the value to. </param>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="GetProperties">
|
||
|
<MemberSignature Language="C#" Value="public override System.ComponentModel.PropertyDescriptorCollection GetProperties (System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.ComponentModel.PropertyDescriptorCollection GetProperties(class System.ComponentModel.ITypeDescriptorContext context, object value, class System.Attribute[] attributes) cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.ComponentModel.PropertyDescriptorCollection</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
<Parameter Name="context" Type="System.ComponentModel.ITypeDescriptorContext" />
|
||
|
<Parameter Name="value" Type="System.Object" />
|
||
|
<Parameter Name="attributes" Type="System.Attribute[]" />
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>The <paramref name="context" /> parameter can be used to extract additional information about the environment this converter is being invoked from. This can be null, so always check. Also, properties on the context object can return null.</para>
|
||
|
<para>The attributes array that you pass in will be used to filter the array. The attributes can have a mix of <see cref="T:System.Type" /> and <see cref="T:System.Attribute" /> objects. Filtering is defined by the following rules: </para>
|
||
|
<list type="bullet">
|
||
|
<item>
|
||
|
<para>A <see cref="T:System.Type" /> object will be treated as a wildcard; it will match any property that has the <see cref="T:System.Type" /> in its set of attributes.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>If a property does not have an <see cref="T:System.Attribute" /> of the same class, the property will not be included in the returned array.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>If the attribute is an instance of <see cref="T:System.Attribute" />, the property must be an exact match or it will not be included in the returned array.</para>
|
||
|
</item>
|
||
|
<item>
|
||
|
<para>If an <see cref="T:System.Attribute" /> instance is specified and it is the default property, it will be included in the returned array even if there is no instance of the <see cref="T:System.Attribute" /> in the property.</para>
|
||
|
</item>
|
||
|
</list>
|
||
|
<para>Collections do not support properties; therefore, this method always returns null.</para>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets a collection of properties for the type of array specified by the value parameter using the specified context and attributes.</para>
|
||
|
</summary>
|
||
|
<returns>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> with the properties that are exposed for this data type, or null if there are no properties. This method always returns null.</para>
|
||
|
</returns>
|
||
|
<param name="context">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context. </param>
|
||
|
<param name="value">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Object" /> that specifies the type of array to get the properties for. </param>
|
||
|
<param name="attributes">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An array of type <see cref="T:System.Attribute" /> that will be used as a filter. </param>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
<Member MemberName="GetPropertiesSupported">
|
||
|
<MemberSignature Language="C#" Value="public override bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext context);" />
|
||
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool GetPropertiesSupported(class System.ComponentModel.ITypeDescriptorContext context) cil managed" />
|
||
|
<MemberType>Method</MemberType>
|
||
|
<AssemblyInfo>
|
||
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||
|
</AssemblyInfo>
|
||
|
<ReturnValue>
|
||
|
<ReturnType>System.Boolean</ReturnType>
|
||
|
</ReturnValue>
|
||
|
<Parameters>
|
||
|
<Parameter Name="context" Type="System.ComponentModel.ITypeDescriptorContext" />
|
||
|
</Parameters>
|
||
|
<Docs>
|
||
|
<remarks>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>The <paramref name="context" /> parameter can be used to extract additional information about the environment this converter is being invoked from. This can be null, so always check. Also, properties on the context object can return null.</para>
|
||
|
<para>Collections do not support properties; therefore, this method always returns false.</para>
|
||
|
</remarks>
|
||
|
<summary>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>Gets a value indicating whether this object supports properties.</para>
|
||
|
</summary>
|
||
|
<returns>
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
|
<para>false because <see cref="M:System.ComponentModel.CollectionConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext,System.Object,System.Attribute[])" /> should not be called to find the properties of this object. This method never returns true.</para>
|
||
|
</returns>
|
||
|
<param name="context">
|
||
|
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> that provides a format context. </param>
|
||
|
</Docs>
|
||
|
</Member>
|
||
|
</Members>
|
||
|
</Type>
|