예제 #1
0
 internal static JToken GetJsonFile(myFiles file)
 {
     return JToken.FromObject(new
     {
         ID = file.ID,
         Name = file.Name,
         Date = file.Date,
         Byte = file.Byte,
         MD5 = file.MD5,
         Path = file.Path
     });
 }
예제 #2
0
 internal static JToken GetJsonFile(myFiles file)
 {
     return(JToken.FromObject(new
     {
         ID = file.ID,
         Name = file.Name,
         Date = file.Date,
         Byte = file.Byte,
         MD5 = file.MD5,
         Path = file.Path
     }));
 }