/// <summary>
/// Writes this element to the writer.
/// </summary>
/// <param name = "writer">The writer.</param>
/// <param name = "map">The map.</param>
public override void WriteTo(ProjectWriter writer, IDictionary <IPBXElement, string> map)
{
writer.WritePBXElementPrologue(2, map, this);
if (this.BuildConfigurationList != null)
{
writer.WritePBXProperty(3, map, "buildConfigurationList", this.BuildConfigurationList);
}
writer.WritePBXProperty(3, map, "compatibilityVersion", this.CompatibilityVersion.ToDescription());
writer.WritePBXProperty(3, map, "developmentRegion", this.DevelopmentRegion);
writer.WritePBXProperty(3, map, "hasScannedForEncodings", this.HasScannedForEncodings);
writer.WritePBXProperty(3, map, "knownRegions", this.KnownRegions.ToList());
if (this.MainGroup != null)
{
writer.WritePBXProperty(3, map, "mainGroup", this.MainGroup);
}
if (this.ProductRefGroup != null)
{
writer.WritePBXProperty(3, map, "productRefGroup", this.ProductRefGroup);
}
writer.WritePBXProperty(3, map, "projectDirPath", this.ProjectDirPath);
if (this.ProjectReferences.Count() > 0)
{
writer.WritePBXProperty(3, map, "projectReferences", this.ProjectReferences.ToList());
}
writer.WritePBXProperty(3, map, "projectRoot", this.ProjectRoot);
writer.WritePBXProperty(3, map, "targets", this.Targets);
writer.WritePBXElementEpilogue(2);
}