MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / ForEachType

Method ForEachType

src/NodeRTLib/Reflector.cs:569–580  ·  view source on GitHub ↗
(IEnumerable<Type> types, string format, int lenToRemove)

Source from the content-addressed store, hash-verified

567 }
568
569 public static string ForEachType(IEnumerable<Type> types, string format, int lenToRemove)
570 {
571 var sb = new System.Text.StringBuilder();
572 var counter = 0;
573 foreach (var type in types)
574 {
575 sb.AppendFormat(format, type.Name, TX.ToWinRT(type), counter);
576 counter++;
577 }
578 if (sb.Length > 0) sb.Remove(sb.Length - lenToRemove, lenToRemove);
579 return sb.ToString();
580 }
581
582 public static string ToWinRTType(Type type)
583 {

Callers 1

Calls 2

RemoveMethod · 0.80
ToWinRTMethod · 0.45

Tested by

no test coverage detected