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
This commit is contained in:
parent
accd628bd3
commit
44155d8827
|
@ -24,7 +24,6 @@ public class Example
|
||||||
// It can easily be converted to a string
|
// It can easily be converted to a string
|
||||||
string str = int_val.ToString();
|
string str = int_val.ToString();
|
||||||
Console.WriteLine("int_val to string is \"{0}\"", str);
|
Console.WriteLine("int_val to string is \"{0}\"", str);
|
||||||
int_val.Flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ValueString()
|
static void ValueString()
|
||||||
|
@ -40,7 +39,6 @@ public class Example
|
||||||
// To string should have the same content
|
// To string should have the same content
|
||||||
string newstr = str_val.ToString();
|
string newstr = str_val.ToString();
|
||||||
Console.WriteLine("str_val to string is \"{0}\"", newstr);
|
Console.WriteLine("str_val to string is \"{0}\"", newstr);
|
||||||
str_val.Flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ValueConvert()
|
static void ValueConvert()
|
||||||
|
@ -66,9 +64,6 @@ public class Example
|
||||||
str_val.ConvertTo(int_val);
|
str_val.ConvertTo(int_val);
|
||||||
int_val.Get(out i2);
|
int_val.Get(out i2);
|
||||||
Console.WriteLine("str_val was \"{0}\", converted to int is {1}", str2, i2);
|
Console.WriteLine("str_val was \"{0}\", converted to int is {1}", str2, i2);
|
||||||
|
|
||||||
str_val.Flush();
|
|
||||||
int_val.Flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Main()
|
public static void Main()
|
||||||
|
|
Loading…
Reference in New Issue