コード例 #1
0
 public static string Get(StringAttributeUtf8 getter)
 {
     using (nsAUTF8String str = new nsAUTF8String())
     {
         getter(str);
         return(str.ToString());
     }
 }
コード例 #2
0
ファイル: nsString.cs プロジェクト: niravpatel/PopcornStudios
		public static string Get(StringAttributeUtf8 getter)
		{
			using (nsAUTF8String str = new nsAUTF8String())
			{
				getter(str);
				return str.ToString();
			}
		}
コード例 #3
0
ファイル: nsString.cs プロジェクト: niravpatel/PopcornStudios
		public static void Set(StringAttributeUtf8 setter, string value)
		{
			using (nsAUTF8String str = new nsAUTF8String())
			{
				if (!string.IsNullOrEmpty(value))
					str.SetData(value);
				
				setter(str);
			}
		}
コード例 #4
0
        public static void Set(StringAttributeUtf8 setter, string value)
        {
            using (nsAUTF8String str = new nsAUTF8String())
            {
                if (!string.IsNullOrEmpty(value))
                {
                    str.SetData(value);
                }

                setter(str);
            }
        }