Todo.Todo.CreateTodo C# (CSharp) Method

CreateTodo() public static method

Create a new Todo object.
public static CreateTodo ( global id, global order, global done, global text ) : Todo
id global Initial value of the Id property.
order global Initial value of the Order property.
done global Initial value of the Done property.
text global Initial value of the Text property.
return Todo
        public static Todo CreateTodo(global::System.Int32 id, global::System.Int32 order, global::System.Boolean done, global::System.String text)
        {
            Todo todo = new Todo();
            todo.Id = id;
            todo.Order = order;
            todo.Done = done;
            todo.Text = text;
            return todo;
        }