public virtual Task AddAttributes(AnnotatedCodeBlock block) { if (Package != null) { block.AddAttribute("data-trydotnet-package", Package); } if (PackageVersion != null) { block.AddAttribute("data-trydotnet-package-version", PackageVersion); } return(Task.CompletedTask); }
public virtual Task AddAttributes(AnnotatedCodeBlock block) { if (Package != null) { block.AddAttribute("data-trydotnet-package", Package); } if (PackageVersion != null) { block.AddAttribute("data-trydotnet-package-version", PackageVersion); } if (!string.IsNullOrWhiteSpace(NormalizedLanguage)) { block.AddAttribute("data-trydotnet-language", NormalizedLanguage); } return(Task.CompletedTask); }