0

I wan't to create instances of the following class, and save them in a Microsoft Access DataBase.

public class Foo
{
    Func<bool> DelegateToSave { get; set; }

    string Name { get; set; }
    string FullName { get; set; }
    int Priority { get; set; }
    Foo Parent { get; set; }
}

How can a delegate be saved in Microsoft Access?

Ofirster
  • 109
  • 8
  • 1
    you'd have to do something like this: https://stackoverflow.com/questions/1132702/could-we-save-delegates-in-a-file-c – Isaac Feb 18 '18 at 23:02
  • Not easily. I suspect you are trying to do something you don't actually need to do. Are you saying your application won't have a `Foo` Type and you want to create one at runtime? – Crowcoder Feb 18 '18 at 23:02
  • I will have a Tree Data Structure of Foos that needs to be received from Access. However, every Foo will have its own delegate. – Ofirster Feb 18 '18 at 23:07

0 Answers0