예제 #1
0
 private IEnumerable <string> GetAvailablilityConditionUpdates(CppProperty property)
 {
     foreach (var condition in property.Conditions)
     {
         yield return($"m_union{condition.UnionID}State = {condition.UnionCase};");
     }
 }
예제 #2
0
        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()));
        }