private string GetFileContent(ILocalStrings localString) { var defaultLocalFile = string.Empty; foreach (var property in localString.GetType().GetProperties()) { if (property.Name != "DisplayName") { defaultLocalFile += string.Format("{0} = {1}\n", property.Name, property.GetValue(localString, null)); } } return defaultLocalFile; }
private string GetFileContent(ILocalStrings localString) { var defaultLocalFile = string.Empty; foreach (var property in localString.GetType().GetProperties()) { if (property.Name != "DisplayName") { defaultLocalFile += string.Format("{0} = {1}\n", property.Name, property.GetValue(localString, null)); } } return(defaultLocalFile); }
private void SetLocalizationString(ILocalStrings localStrings, string propertyName, string value) { localStrings.GetType().GetProperty(propertyName).SetValue(localStrings, value, null); }
private bool LocalizationStringExists(ILocalStrings localStrings, string propertyName) { return(localStrings.GetType().GetProperty(propertyName) != null); }
private bool LocalizationStringExists(ILocalStrings localStrings, string propertyName) { return localStrings.GetType().GetProperty(propertyName) != null; }