Show / Hide Table of Contents

    Class ObjectExtensions

    Helper class that provides methods for all objects.

    Inheritance
    System.Object
    ObjectExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Common.Utilities
    Assembly: Fibula.Common.Utilities.dll
    Syntax
    public static class ObjectExtensions

    Methods

    | Improve this Doc View Source

    GetPropertyValue(Object, String)

    Gets the value of a given object's property.

    Declaration
    public static object GetPropertyValue(this object obj, string propertyName)
    Parameters
    Type Name Description
    System.Object obj

    The object.

    System.String propertyName

    The name of the property.

    Returns
    Type Description
    System.Object

    The value of the property, or null if not defined.

    | Improve this Doc View Source

    YieldSingleItem<T>(T)

    Wraps this object instance into an IEnumerable<T> consisting of a single item.

    Declaration
    public static IEnumerable<T> YieldSingleItem<T>(this T item)
    Parameters
    Type Name Description
    T item

    The instance that will be wrapped.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T>

    An IEnumerable<T> consisting of a single item.

    Type Parameters
    Name Description
    T

    Type of the object.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.