コード例 #1
0
            }             // proc WriteType

            public void WriteItem(DEListItemWriter xml, object item)
            {
                xml.WriteStartProperty(typeName);
                xml.WriteProperty("@key", keyProperty.GetValue(item));
                var itemValue = itemProperty.GetValue(item);

                for (var i = 0; i < properties.Length; i++)
                {
                    properties[i].WriteProperty(xml, itemValue);
                }
                xml.WriteEndProperty();
            }     // proc WriteItem
コード例 #2
0
 public void WriteProperty(DEListItemWriter xml, object item)
 => xml.WriteProperty(attribute.Name, GetValueSafe(item));