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

Method ForEachEvent

src/NodeRTLib/Reflector.cs:547–556  ·  view source on GitHub ↗
(IEnumerable<dynamic> events, string format, int lenToRemove)

Source from the content-addressed store, hash-verified

545 }
546
547 public static string ForEachEvent(IEnumerable<dynamic> events, string format, int lenToRemove)
548 {
549 var sb = new System.Text.StringBuilder();
550 foreach (var e in events)
551 {
552 sb.AppendFormat(format, e.EventInfo.Name, Uncap(e.EventInfo.Name), TX.ToWinRT(e.EventInfo.EventHandlerType));
553 }
554 if (sb.Length > 0) sb.Remove(sb.Length - lenToRemove, lenToRemove);
555 return sb.ToString();
556 }
557
558 public static string ForEachParameter(IEnumerable<ParameterInfo> parameters, string format, int lenToRemove)
559 {

Callers 1

RemoveListenerFunction · 0.80

Calls 2

RemoveMethod · 0.80
ToWinRTMethod · 0.45

Tested by

no test coverage detected