/// <summary> /// Gets the field definitions on this class. /// </summary> /// <param name="sb">The class writer.</param> /// <param name="classInfo">The class info.</param> private static void FieldDefinitions(ClassWriter sb, ClassInfo classInfo) { foreach (var prop in classInfo.CompiledProps) { sb.AddField( $"The lazy-compiled condition for the {prop.Name} property.", $"Lazy<ICompiledCondition<{prop.ReturnType}>>?", $"compiledCondition{prop.Name}"); } foreach (var prop in classInfo.CompiledDictionaryProps) { sb.AddField( $"The lazy-compiled conditions for the {prop.Name} property.", $"IDictionary<string, Lazy<ICompiledCondition<{prop.ReturnType}>>>", $"compiledCondition{prop.Name}", $"new Dictionary<string, Lazy<ICompiledCondition<{prop.ReturnType}>>>()"); } }