namespace Tizen.NUI
{
+ using System.Text;
+
internal static class PropertyHelper
{
///<summary>
internal static Property GetPropertyFromString(Animatable handle, string stringProperty)
{
/// Convert property string to be lowercase
- string str1 = stringProperty.Substring(0, 1);
- string str2 = stringProperty.Substring(1);
- string str = str1.ToLower() + str2;
+ StringBuilder sb = new StringBuilder(stringProperty);
+ sb[0] = (char)(sb[0] | 0x20);
+ string str = sb.ToString();
Property property = new Property(handle, str);
if (property.propertyIndex == Property.INVALID_INDEX)
namespace Tizen.NUI.BaseComponents
{
using System;
+ using System.Text;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
_timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
_animator.Add("timePeriod", new PropertyValue(_timePeriod));
- string _str1 = property.Substring(0, 1);
- string _str2 = property.Substring(1);
- string _str = _str1.ToLower() + _str2;
+ StringBuilder sb = new StringBuilder(property);
+ sb[0] = (char)(sb[0] | 0x20);
+ string _str = sb.ToString();
if (_str == "position") {_str = "offset";}
PropertyValue destVal = PropertyValue.CreateFromObject(destinationValue);
_timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
_animator.Add("timePeriod", new PropertyValue(_timePeriod));
- string _str1 = property.Substring(0, 1);
- string _str2 = property.Substring(1);
- string _str = _str1.ToLower() + _str2;
+ StringBuilder sb = new StringBuilder(property);
+ sb[0] = (char)(sb[0] | 0x20);
+ string _str = sb.ToString();
if (_str == "position") {_str = "offset";}
PropertyValue destVal = PropertyValue.CreateFromObject(destinationValue);
namespace Tizen.NUI
{
+ using System.Text;
using System.Collections.Generic;
using Tizen.NUI.BaseComponents;
_timePeriod.Add("delay", new PropertyValue(_startTime / 1000.0f));
_animator.Add("timePeriod", new PropertyValue(_timePeriod));
- string _str1 = _propertyIndex.Substring(0, 1);
- string _str2 = _propertyIndex.Substring(1);
- string _str = _str1.ToLower() + _str2;
+ StringBuilder sb = new StringBuilder(_propertyIndex);
+ sb[0] = (char)(sb[0] | 0x20);
+ string _str = sb.ToString();
PropertyValue val = PropertyValue.CreateFromObject(_destinationValue);