public void AddAsset(AnalyzerAsset asset) { if (_assets == null) { _assets = new List <AnalyzerAsset>(); } _assets.Add(asset); }
private AnalyzerAsset GetAsset(string assetPath) { AnalyzerAsset asset; if (!assets.TryGetValue(assetPath, out asset)) { asset = assets[assetPath] = new AnalyzerAsset() { assetPath = assetPath, }; } return(asset); }