summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-09-17 11:58:34 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-09-17 11:59:01 -0300
commit44155d8827cc7f9690537ca01a889240b37f3efd (patch)
tree4487bce66624830a7e5cec2988f8a342da05b810 /reference
parentaccd628bd3ca9e31b11d8824005ac0439d1d780c (diff)
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
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/eina/src/eina_value.cs5
1 files changed, 0 insertions, 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
24 // It can easily be converted to a string 24 // It can easily be converted to a string
25 string str = int_val.ToString(); 25 string str = int_val.ToString();
26 Console.WriteLine("int_val to string is \"{0}\"", str); 26 Console.WriteLine("int_val to string is \"{0}\"", str);
27 int_val.Flush();
28 } 27 }
29 28
30 static void ValueString() 29 static void ValueString()
@@ -40,7 +39,6 @@ public class Example
40 // To string should have the same content 39 // To string should have the same content
41 string newstr = str_val.ToString(); 40 string newstr = str_val.ToString();
42 Console.WriteLine("str_val to string is \"{0}\"", newstr); 41 Console.WriteLine("str_val to string is \"{0}\"", newstr);
43 str_val.Flush();
44 } 42 }
45 43
46 static void ValueConvert() 44 static void ValueConvert()
@@ -66,9 +64,6 @@ public class Example
66 str_val.ConvertTo(int_val); 64 str_val.ConvertTo(int_val);
67 int_val.Get(out i2); 65 int_val.Get(out i2);
68 Console.WriteLine("str_val was \"{0}\", converted to int is {1}", str2, i2); 66 Console.WriteLine("str_val was \"{0}\", converted to int is {1}", str2, i2);
69
70 str_val.Flush();
71 int_val.Flush();
72 } 67 }
73 68
74 public static void Main() 69 public static void Main()