From 44155d8827cc7f9690537ca01a889240b37f3efd Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Mon, 17 Sep 2018 11:58:34 -0300 Subject: [PATCH] csharp: Remove Flush() from eina.Value examples Summary: Flush() is not required, the bindings take care of memory. Moreover, it is confusing for the C# developer, unaccostumed to having to free memory. Reviewers: vitor.sousa, lauromoura Reviewed By: vitor.sousa Differential Revision: https://phab.enlightenment.org/D7036 --- reference/csharp/eina/src/eina_value.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/reference/csharp/eina/src/eina_value.cs b/reference/csharp/eina/src/eina_value.cs index 96e137a9..0822798c 100644 --- a/reference/csharp/eina/src/eina_value.cs +++ b/reference/csharp/eina/src/eina_value.cs @@ -24,7 +24,6 @@ public class Example // It can easily be converted to a string string str = int_val.ToString(); Console.WriteLine("int_val to string is \"{0}\"", str); - int_val.Flush(); } static void ValueString() @@ -40,7 +39,6 @@ public class Example // To string should have the same content string newstr = str_val.ToString(); Console.WriteLine("str_val to string is \"{0}\"", newstr); - str_val.Flush(); } static void ValueConvert() @@ -66,9 +64,6 @@ public class Example str_val.ConvertTo(int_val); int_val.Get(out i2); Console.WriteLine("str_val was \"{0}\", converted to int is {1}", str2, i2); - - str_val.Flush(); - int_val.Flush(); } public static void Main()