Home > Net >  Associated data types, for help
Associated data types, for help

Time:10-07

Write a function to store data, but before running to save the data type of the unknown, I don't know what to do,
My current idea is to write save MSG (T), but I don't know how to call, because the data type unknown
Can't save (123); Because I don't know is int or string
Program run data is a string, run after a period of time to determine the storage type, and then call the save
For how to implement,,,

CodePudding user response:

refer to the original poster weixin_44558405 response:
program run data is a string, run after a period of time to determine the storage type

You put the "storage" code written to see,

CodePudding user response:

reference 1st floor interacting in a professional developer response:
Quote: refer to the original poster weixin_44558405 response:

Program run data is a string, run after a period of time to determine the storage type

You put the "storage" code written,

U3D projects in ES3
ES3. Save (Name, MSG, Path);

CodePudding user response:

Save directly (123), t is a placeholder compile time will be automatically processed
  •  Tags:  
  • C#
  • Related