Skip to main content
All docs
V26.1
  • .NET 8.0+

    ThreadSafeDataLayer.InitializeDictionary(XPDictionary, IEnumerable<Assembly>) Method

    Namespace: DevExpress.Xpo

    Assembly: DevExpress.Xpo.v26.1.dll

    Declaration

    public static void InitializeDictionary(
        XPDictionary dictionary,
        IEnumerable<Assembly> assemblies
    )

    Parameters

    Name Type
    dictionary XPDictionary
    assemblies IEnumerable<Assembly>

    Remarks

    The InitializeDictionary method enumerates all the types available in the specified assemblies. Some types may reference other assemblies. If CLR cannot load a referenced assembly, it throws the FileNotFoundException, FileLoadException, or BadImageFormatException. The InitializeDictionary method handles all exceptions and skips the problematic assembly without adding corresponding persistent classes to the dictionary.

    See Also