private IEnumerable <string> GetAvailablilityConditionUpdates(CppProperty property) { foreach (var condition in property.Conditions) { yield return($"m_union{condition.UnionID}State = {condition.UnionCase};"); } }
private string GetAvailabilityCondition(CppProperty property) { var conditions = from condition in property.Conditions select $"m_union{condition.UnionID}State == {condition.UnionCase}"; return(string.Join(" && ", conditions.ToArray())); }