private static void CompileCustomProperties(CustomProperties convertFrom, CompiledCustomProperties compileInto) { compileInto.Reset(); foreach (string key in convertFrom.PropertyValues.Keys) { compileInto.AddProperty(convertFrom.PropertyValues[key].Name, convertFrom.PropertyValues[key].Value); } }