Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };
string json = JsonConvert.SerializeObject(product);
// {
// "Name": "Apple",
// "Expiry": "2008-12-28T00:00:00",
// "Sizes": [
// "Small"
// ]
// }
Subscribe to:
Post Comments (Atom)
React Hooks - custom Hook
v CustomHook Ø React allows us to create our own hook which is known as custom hook. Example – 1 localStorage Demo Step-1 Create ...
-
ASP.NET Page Life Cycle Events 22 SEP When a page request is sent to the Web server, the page is run through a series of events du...
-
CREATE FUNCTION [dbo].[GetDeleteFlagStatus] ( @DeleteFlag INT ) RETURNS NVARCHAR(15) AS BEGIN DECLARE @Status NVARCHAR(15); S...
-
Garbage collection is a low-priority process that serves as an automatic memory manager which manages the allocation and release of memory...
No comments:
Post a Comment