Search Results for

    Show / Hide Table of Contents

    Class ConfigurationProviderUtil

    Utility functions for ConfigurationProviders

    Inheritance
    System.Object
    ConfigurationProviderUtil
    Namespace: ImageVault.Common.Configuration
    Assembly: ImageVault.Common.dll
    Syntax
    public static class ConfigurationProviderUtil : Object

    Methods

    CopyPropertyValues<T>(T, T)

    Copies all values from the supplied source to the target object

    Declaration
    public static void CopyPropertyValues<T>(T src, T dst)
        where T : class, new()
    Parameters
    Type Name Description
    T src

    The object to copy from

    T dst

    The object to copy to

    Type Parameters
    Name Description
    T
    Remarks

    Only performs a shallow copy

    CreateDiffDictionary<T>(String, T, T)

    Creates a dictionary on the configuration provider format for all entries in object b that differs (not null) from respective object in a

    Declaration
    public static Dictionary<string, string> CreateDiffDictionary<T>(string path, T a, T b)
        where T : class
    Parameters
    Type Name Description
    System.String path
    T a
    T b
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>
    Type Parameters
    Name Description
    T
    Remarks

    Will not look to subclasses of the supplied types in the targeted objects. Will not handle circular references either.

    In This Article
    Back to top (c) Meriworks 2002-2022