MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / GetEnumerator

Method GetEnumerator

StereoKit/Assets/Model.cs:799–804  ·  view source on GitHub ↗

The enumerator for the collection's KeyValuePairs. Each consecutive pair in the collection.

()

Source from the content-addressed store, hash-verified

797 /// <summary>The enumerator for the collection's KeyValuePairs.</summary>
798 /// <returns>Each consecutive pair in the collection.</returns>
799 public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
800 {
801 int iterator = 0;
802 while (NativeAPI.model_node_info_iterate(_model, _nodeId, ref iterator, out IntPtr key, out IntPtr val))
803 yield return new KeyValuePair<string, string>(NativeHelper.FromUtf8(key), NativeHelper.FromUtf8(val));
804 }
805
806 IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
807 }

Callers

nothing calls this directly

Calls 2

FromUtf8Method · 0.80

Tested by

no test coverage detected