scixing
scixing
CC#
Created by scixing on 11/20/2022 in #help
❔ Can I get all the pictures from the images folder? In Maui
Then use image like this
5 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
thx, it look ok
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
hungrymeowo
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
yes
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
thxowo
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
thx, i will try
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
use JsonConverter?
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
I haven't found a good way to do this for the time angryowo
20 replies
CC#
Created by scixing on 11/10/2022 in #help
e different names during Serialize and Deserialize [Answered]
i mean Serialize use "AA" and Deserialize use "BB"
20 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
This is used in CreateGameObject<T>
31 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
But it seems that I can only do this, or ignore performance and use nervousowo
31 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
This may lead to a lot of switch or other codes. If possible, I want to avoid them.
31 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
This does not seem to solve the problem of initializing to the specified type(? In HowerYouLoadTheThing, I still encounter corresponding problems
31 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
use reflection
31 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
public static object CreateGameObject(GameObjectSave save)
{
string typename = save.TypeName;
Type type = GetModelType(typename);
var method = type.GetMethod("CreateGameObject").MakeGenericMethod(type);
return method.Invoke(null, new object[] {"dani", save});
// return CreateGameObject<Unit>("some obj");
// CreateGameObject<type>("some obj");

}
public static object CreateGameObject(GameObjectSave save)
{
string typename = save.TypeName;
Type type = GetModelType(typename);
var method = type.GetMethod("CreateGameObject").MakeGenericMethod(type);
return method.Invoke(null, new object[] {"dani", save});
// return CreateGameObject<Unit>("some obj");
// CreateGameObject<type>("some obj");

}
31 replies
CC#
Created by scixing on 9/26/2022 in #help
Is there a way to call generic methods through Type (from typeof or GetType) (without reflection)
It's not important. I mainly want to know whether there is a similar way to do this
31 replies