I want to get the type of the value stored in the 'result' variable. Assume I dont know the 'result' value and the value comes during runtime.
string result="System.IO.Directory";
MetadataReference[] references =
{
MetadataReference.CreateFromFile(path: typeof(result).Assembly.Location)
}
Is there any way to do this?
Would the following statement work for your? The string below should be in a format like this
"FullyQualifiedName, AssembleName"Word to the wise, these solutions always require some type of reflection, and while it is a tool as good as any, too much of it can cause performance issues.