public AssemInfo(object assemInfo) { Name = (string)Reflected.GetField(assemInfo, "Name"); Locale = (string)Reflected.GetField(assemInfo, "Locale"); Codebase = (string)Reflected.GetField(assemInfo, "Codebase"); Modified = (string)Reflected.GetField(assemInfo, "Modified"); OSType = (string)Reflected.GetField(assemInfo, "OSType"); OSVersion = (string)Reflected.GetField(assemInfo, "OSVersion"); ProcType = (string)Reflected.GetField(assemInfo, "ProcType"); PublicKey = (string)Reflected.GetField(assemInfo, "PublicKey"); PublicKeyToken = (string)Reflected.GetField(assemInfo, "PublicKeyToken"); Version = (string)Reflected.GetField(assemInfo, "Version"); uint nCacheType = (uint)Reflected.GetField(assemInfo, "nCacheType"); CacheType = (Fusion.CacheType)nCacheType; sCustom = (string)Reflected.GetField(assemInfo, "sCustom"); sFusionName = (string)Reflected.GetField(assemInfo, "sFusionName"); }
public AssemInfo(object assemInfo) { Source = assemInfo; Name = assemInfo.GetField <string>("Name"); Locale = assemInfo.GetField <string>("Locale"); Codebase = assemInfo.GetField <string>("Codebase"); Modified = assemInfo.GetField <string>("Modified"); OSType = assemInfo.GetField <string>("OSType"); OSVersion = assemInfo.GetField <string>("OSVersion"); ProcType = assemInfo.GetField <string>("ProcType"); PublicKey = assemInfo.GetField <string>("PublicKey"); PublicKeyToken = assemInfo.GetField <string>("PublicKeyToken"); Version = assemInfo.GetField <string>("Version"); uint nCacheType = (uint)assemInfo.GetField("nCacheType"); CacheType = (Fusion.CacheType)nCacheType; sCustom = (string)assemInfo.GetField("sCustom"); sFusionName = (string)assemInfo.GetField("sFusionName"); }