I want to convert a string str="ABC=100 BC C=50" to xml as 100 = Is it possible? bidisha
bidisha_tina
Posts
-
Conversion to xml -
[Message Deleted][Message Deleted]
-
Dynamic Defination of classI have two arrays name[]={a,b,c} value[]={1,2,3} My requirement is to define a class as myclass/*myclass will contain members as specified by name[] array*/ { string a; string b; string c: } at runtime and to create an object of myclass ,say myobj and set myobj.a=1; myobj.b=2; myobj.c=3; Point to note is that name[] and value[] array can be of any size and contain any value.They are not hard coded. I am at my wit's end to solve this problem.Please help. bidisha
-
object initializationI have used FieldInfo.setValue to set the fields where FieldInfo.Name=my_specified_name. I have no problem with setting the field value with primitive datatype such as string or int.But some field are of user defined datatype.For example, I have a field as Call mycall; where public class Call { string calltime; string callvalue; } I cant reach to mycall.calltime using FieldInfo. bidisha
-
object initializationActually I have a xsd file from which I autogenerate a .cs file containing all class definations.I need to change my xsd often,so the members of the class often changes.And I want to initialise the members at run time whose name I can specify through a string str.suppose I set str="call".Now I want to set myobject.call=value.Please help. bidisha
-
object initializationI have a class myclass{public int a;} and a string str="a". I want to set myclassobject.a=1 as myclassobject.str=1.How is it possible? } bidisha