using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
-using System.Runtime.CompilerServices;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI
{
var propertyName = LowerFirstLetter(stringProperty);
- if (animatable is View)
+ if(animatable is View)
{
View view = animatable as View;
return SearchProperty(view, propertyName) ?? SearchVisualProperty(view, propertyName);
return result;
}
- private static unsafe string LowerFirstLetter(string original)
+ private static string LowerFirstLetter(string original)
{
- if (string.IsNullOrEmpty(original) || char.IsLower(original[0]))
- return original;
-
- fixed (char* chars = original)
- {
- chars[0] = char.ToLower(chars[0]);
- }
-
- return original;
+ StringBuilder sb = new StringBuilder(original);
+ sb[0] = (char)(sb[0] | 0x20);
+ return sb.ToString();
}
private static object ObjectColorToVector4(object value)
*/
using System.ComponentModel;
using System.Text;
-using System.Runtime.CompilerServices;
namespace Tizen.NUI
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- private static unsafe string LowerFirstLetter(string original)
+ private static string LowerFirstLetter(string original)
{
- if (string.IsNullOrEmpty(original) || char.IsLower(original[0]))
- return original;
-
- fixed (char* chars = original)
- {
- chars[0] = char.ToLower(chars[0]);
- }
-
- return original;
+ StringBuilder sb = new StringBuilder(original);
+ sb[0] = (char)(sb[0] | 0x20);
+ return sb.ToString();
}
/// This will not be public opened.