Beispiel #1
0
 public static string Get(StringAttributeUnicode getter)
 {
     using (nsAString str = new nsAString())
     {
         getter(str);
         return(str.ToString());
     }
 }
Beispiel #2
0
		public static string Get(StringAttributeUnicode getter)
		{
			using (nsAString str = new nsAString())
			{
				getter(str);
				return str.ToString();
			}
		}
Beispiel #3
0
		public static void Set(StringAttributeUnicode setter, string value)
		{
			using (nsAString str = new nsAString())
			{
				if (!string.IsNullOrEmpty(value))
					str.SetData(value);
				
				setter(str);
			}
		}
Beispiel #4
0
        public static void Set(StringAttributeUnicode setter, string value)
        {
            using (nsAString str = new nsAString())
            {
                if (!string.IsNullOrEmpty(value))
                {
                    str.SetData(value);
                }

                setter(str);
            }
        }