summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-09-06 12:05:02 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-09-06 12:06:02 -0300
commitaccd628bd3ca9e31b11d8824005ac0439d1d780c (patch)
tree51eec712fdd4fcd23240c953440173c338278676 /reference
parenta473380cc78e2bbb79e2fce5b43114b0d211df33 (diff)
csharp: Comments in eina_value.cs
Reviewers: lauromoura, vitor.sousa, felipealmeida Reviewed By: vitor.sousa Differential Revision: https://phab.enlightenment.org/D6996
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/eina/src/eina_value.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/reference/csharp/eina/src/eina_value.cs b/reference/csharp/eina/src/eina_value.cs
index f4ec556c..96e137a9 100644
--- a/reference/csharp/eina/src/eina_value.cs
+++ b/reference/csharp/eina/src/eina_value.cs
@@ -1,10 +1,9 @@
1
2/* 1/*
3 * Eina Value examples. 2 * Eina Value examples.
4 * 3 *
5 * These examples demonstrate how to work with eina_value data and methods. 4 * These examples demonstrate how to work with eina_value data and methods.
6 * Eina_Value is a way to represent and pass data of varying types and to 5 * Eina_Value is a way to represent and pass data of varying types and to
7 * convert efficiently between them.. 6 * convert efficiently between them.
8 * Eina_Value can even define structs for managing more complex requirements. 7 * Eina_Value can even define structs for managing more complex requirements.
9 */ 8 */
10 9
@@ -22,7 +21,7 @@ public class Example
22 int_val.Get(out i); 21 int_val.Get(out i);
23 Console.WriteLine("int_val value is {0}", i); 22 Console.WriteLine("int_val value is {0}", i);
24 23
25 // It can easily be converted it to a string 24 // It can easily be converted to a string
26 string str = int_val.ToString(); 25 string str = int_val.ToString();
27 Console.WriteLine("int_val to string is \"{0}\"", str); 26 Console.WriteLine("int_val to string is \"{0}\"", str);
28 int_val.Flush(); 27 int_val.Flush();
@@ -46,11 +45,11 @@ public class Example
46 45
47 static void ValueConvert() 46 static void ValueConvert()
48 { 47 {
49 // set up string and int types to convert between 48 // Set up string and int types to convert between
50 var str_val = new eina.Value(eina.ValueType.String); 49 var str_val = new eina.Value(eina.ValueType.String);
51 var int_val = new eina.Value(eina.ValueType.Int32); 50 var int_val = new eina.Value(eina.ValueType.Int32);
52 51
53 // convert from int to string: 52 // Convert from int to string:
54 int i1; 53 int i1;
55 string str1; 54 string str1;
56 int_val.Set(123); 55 int_val.Set(123);
@@ -59,7 +58,7 @@ public class Example
59 str_val.Get(out str1); 58 str_val.Get(out str1);
60 Console.WriteLine("int_val was {0}, converted to string is \"{1}\"", i1, str1); 59 Console.WriteLine("int_val was {0}, converted to string is \"{1}\"", i1, str1);
61 60
62 // and the other way around! 61 // And the other way around!
63 int i2; 62 int i2;
64 string str2; 63 string str2;
65 str_val.Set("33"); 64 str_val.Set("33");
@@ -85,9 +84,6 @@ public class Example
85 ValueConvert(); 84 ValueConvert();
86 Console.WriteLine(""); 85 Console.WriteLine("");
87 86
88 // TODO: FIXME
89 // ValueStruct();
90
91 efl.All.Shutdown(); 87 efl.All.Shutdown();
92 } 88 }
93} 89}