Felbook.Models.Event.CreateEvent C# (CSharp) 메소드

CreateEvent() 공개 정적인 메소드

Create a new Event object.
public static CreateEvent ( global id, global from, global to, global name, global text ) : Event
id global Initial value of the Id property.
from global Initial value of the From property.
to global Initial value of the To property.
name global Initial value of the Name property.
text global Initial value of the Text property.
리턴 Event
        public static Event CreateEvent(global::System.Int32 id, global::System.DateTime from, global::System.DateTime to, global::System.String name, global::System.String text)
        {
            Event @event = new Event();
            @event.Id = id;
            @event.From = from;
            @event.To = to;
            @event.Name = name;
            @event.Text = text;
            return @event;
        }