aboutsummaryrefslogtreecommitdiffstats
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
parentcsharp: Comments in eina_value.cs (diff)
downloadexamples-44155d8827cc7f9690537ca01a889240b37f3efd.tar.gz
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
// 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()