menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ReflectionExtensions - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ReflectionExtensions

    Inheritance
    System.Object
    ReflectionExtensions
    Namespace: Syncfusion.Data.Extensions
    Assembly: Syncfusion.Data.Portable.dll
    Syntax
    public static class ReflectionExtensions : Object

    Methods

    BaseType(Type)

    Gets the type from which the current type directly inherits.

    Declaration
    public static Type BaseType(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Type

    The type from which the current type directly inherits, or null if the current type represents the object class or an interface.

    GetCulture(CultureInfo)

    Declaration
    public static CultureInfo GetCulture(this CultureInfo cultureInfo)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo cultureInfo
    Returns
    Type
    System.Globalization.CultureInfo

    GetIsDynamicBound(IEnumerable)

    Gets the boolean value indicating whether the specified collection is Dynamic Bound or Not.

    Declaration
    public static bool GetIsDynamicBound(this IEnumerable collection)
    Parameters
    Type Name Description
    System.Collections.IEnumerable collection
    Returns
    Type Description
    System.Boolean

    True if the collection is dynamic bound,otherwise false.

    GetItemProperties(IEnumerable, out Boolean)

    Gets the item properties for the specified dataSource.

    Declaration
    public static PropertyDescriptorCollection GetItemProperties(this IEnumerable dataSource, out bool itemPropertiesSet)
    Parameters
    Type Name Description
    System.Collections.IEnumerable dataSource
    System.Boolean itemPropertiesSet
    Returns
    Type Description
    System.ComponentModel.PropertyDescriptorCollection

    The item properties of the specified dataSource.

    GetProperties(Type)

    Declaration
    public static IEnumerable<PropertyInfo> GetProperties(this Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type
    System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo>

    IsAbstract(Type)

    Checks whether the specified type is abstract or not.

    Declaration
    public static bool IsAbstract(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the specified type is abstract, otherwise false.

    IsAssignableFrom(Type, Type)

    Declaration
    public static bool IsAssignableFrom(this Type type, Type typeInfo)
    Parameters
    Type Name Description
    System.Type type
    System.Type typeInfo
    Returns
    Type
    System.Boolean

    IsEnum(Type)

    Checks whether the specified type represents an enumeration or not.

    Declaration
    public static bool IsEnum(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the specified type represents an enumeration, otherwise false.

    IsGenericType(Type)

    Checks Whether the specified type is generic type or not.

    Declaration
    public static bool IsGenericType(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the specified type is generic, otherwise false.

    IsGenericTypeDefinition(Type)

    Checks whether the specifed type is generic type definition or not.

    Declaration
    public static bool IsGenericTypeDefinition(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the type object represents a generic type definition, otherwise false.

    IsInterface(Type)

    Checks whether the specified type is an interface; that is, not a class or a value type.

    Declaration
    public static bool IsInterface(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the type is an interface; otherwise false.

    IsPrimitive(Type)

    Checks whether the specified type is one of the primitive types or not.

    Declaration
    public static bool IsPrimitive(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the type is one of the primitive types; otherwise false.

    IsValueType(Type)

    Checks whether the specified type is value type or not.

    Declaration
    public static bool IsValueType(this Type type)
    Parameters
    Type Name Description
    System.Type type

    The type.

    Returns
    Type Description
    System.Boolean

    true if the specified type is value type, otherwise false.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved