How to convert ISearchResponse to C# Class Object.
I am trying to convert to Class Object where my Class name will be dynamic.
ISearchResponse<dynamic> bResponseNewLoop =
objElastic.Search<dynamic>(s => s
.Index("index1")
.Type("DOCTYPE")
.From(0)
.Size(10)
.Source(sr => sr.Include(RequiredFields)));
From above Response , i want to convert the response object to class object and The class name i am retriving from xml file.