本文整理汇总了C#中Hl7.Fhir.Model.List.RemoveAll方法的典型用法代码示例。如果您正苦于以下问题:C# List.RemoveAll方法的具体用法?C# List.RemoveAll怎么用?C# List.RemoveAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hl7.Fhir.Model.List
的用法示例。
在下文中一共展示了List.RemoveAll方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetTextTag
public static void SetTextTag(this BundleEntry entry, string text)
{
var result = new List<Tag>();
if (entry.Tags != null) result.AddRange(entry.Tags);
result.RemoveAll(t => Equals(t.Scheme,Tag.FHIRTAGSCHEME_GENERAL) &&
(t.Term != null && t.Term.StartsWith(TAG_TERM_TEXT)));
result.Add(new Tag(TAG_TERM_TEXT + Uri.EscapeUriString(text), Tag.FHIRTAGSCHEME_GENERAL, text));
entry.Tags = result;
}
示例2: Remove
public static IEnumerable<Tag> Remove(this IEnumerable<Tag> tags, IEnumerable<Tag> that)
{
var result = new List<Tag>();
result.AddRange(tags);
if (that != null)
result.RemoveAll(t => that.HasTag(t.Term, t.Scheme));
return result;
}
示例3: RemoveSecurityLabel
public static void RemoveSecurityLabel(this ResourceEntry entry, Uri label)
{
var result = new List<Tag>(entry.Tags);
result.RemoveAll(t => Equals(t, new Tag(label.ToString(), Tag.FHIRTAGSCHEME_SECURITY)));
entry.Tags = result;
}
示例4: RemoveProfileAssertion
public static void RemoveProfileAssertion(this ResourceEntry entry, Uri profileUri)
{
var result = new List<Tag>(entry.Tags);
result.RemoveAll(t => Equals(t, new Tag(profileUri.ToString(), Tag.FHIRTAGSCHEME_PROFILE)));
entry.Tags = result;
}
示例5: prepareFiles
/// <summary>
/// Prepares the source by reading all files present in the directory (matching the mask, if given)
/// </summary>
private void prepareFiles()
{
if (_filesPrepared) return;
IEnumerable<string> masks;
if (Mask == null)
masks = new string[] { "*.*" };
else
masks = Mask.Split('|').Select(s => s.Trim()).Where(s => !String.IsNullOrEmpty(s));
// Add files present in the content directory
var allFiles = new List<string>();
foreach (var mask in masks)
{
allFiles.AddRange(Directory.GetFiles(_contentDirectory, mask, _includeSubs ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly));
}
allFiles.RemoveAll(name => Path.GetExtension(name) == ".exe" || Path.GetExtension(name) == ".dll");
_artifactFilePaths = new List<string>(allFiles);
_filesPrepared = true;
}