private void GenerateLocationEvidence() { if (!this.m_generatedLocationEvidence) { SecurityZone securityZone = SecurityZone.NoZone; string text = null; PEFileEvidenceFactory.GetLocationEvidence(this.m_peFile, out securityZone, JitHelpers.GetStringHandleOnStack(ref text)); if (securityZone != SecurityZone.NoZone) { this.m_zoneEvidence = new Zone(securityZone); } if (!string.IsNullOrEmpty(text)) { this.m_urlEvidence = new Url(text, true); if (!text.StartsWith("file:", StringComparison.OrdinalIgnoreCase)) { this.m_siteEvidence = Site.CreateFromUrl(text); } } this.m_generatedLocationEvidence = true; } }
private void GenerateLocationEvidence() { if (this.m_generatedLocationEvidence) { return; } SecurityZone zone = SecurityZone.NoZone; string s = (string)null; PEFileEvidenceFactory.GetLocationEvidence(this.m_peFile, out zone, JitHelpers.GetStringHandleOnStack(ref s)); if (zone != SecurityZone.NoZone) { this.m_zoneEvidence = new Zone(zone); } if (!string.IsNullOrEmpty(s)) { this.m_urlEvidence = new Url(s, true); if (!s.StartsWith("file:", StringComparison.OrdinalIgnoreCase)) { this.m_siteEvidence = Site.CreateFromUrl(s); } } this.m_generatedLocationEvidence = true; }