C# Action- 검토

C# 에는 독특한것이 있다, Action 이란 것인데, 이런 기능의 필요성동 조금 의문이지만 특이하다,
나의 경우는 Extension기능을 선호 하기에 이렇게 사용할 경우는 없을 것 같지만 , 한번쯤 눈여겨 보고 가야 할 것 같아
종료버튼 눌렀을 때 메시지 박스가 뜨면,1000ms(1s)후에 자동 종료되는 형태이다.다른 방법도 있지만 Action으로 사용 하는 방법

private void MessageBoxFormClosing(Form fm)
    if (fm.InvokeRequired)
closeform = new Action
(MessageBoxFormClosing); this.Invoke(closeform, fm); } else { if (fm != null) fm.Close(); } } private void button1_Click(object sender, EventArgs e) { Form msgfm = new Form(); Action clse = new Action(() = > { while (true) { System.Threading.Thread.Sleep(1000); break; } MessageBoxFormClosing(msgfm); }); clse.BeginInvoke(ir = > clse.EndInvoke(ir), null); MessageBox.Show(msgfm, “닫혀~”); }

“C# Action- 검토”의 42개의 댓글

  1. 핑백: elang qq

  2. 핑백: call of duty modern warfare cheats free

  3. Hi there! I could have sworn I’ve been to your blog before but after browsing through a few of the
    posts I realized it’s new to me. Regardless, I’m certainly delighted I found it and I’ll be book-marking it and checking back frequently!

  4. Hello everybody, here every one is sharing these
    kinds of experience, therefore it’s good to read this website,
    and I used to visit this blog all the time.

  5. Simply want to say your article is as astounding. The clearness to your post is simply nice and that i can assume you are
    an expert in this subject. Well with your permission let me to seize your feed to stay updated with coming near near post.
    Thank you one million and please carry on the rewarding

  6. Thank you a bunch for sharing this with all people you
    really recognise what you are talking about! Bookmarked.
    Kindly additionally discuss with my site =).
    We may have a hyperlink alternate agreement between us

  7. Its like you learn my thoughts! You seem to understand so much approximately this, like you wrote the book in it
    or something. I think that you simply can do with a few % to pressure the message house a little bit, however other than that, that is wonderful blog.
    A great read. I will definitely be back.

  8. 핑백: where to buy red wigglers

  9. Hey just wanted to give you a brief heads up and let you
    know a few of the pictures aren’t loading properly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two different internet browsers and both show
    the same results.

    Feel free to visit my webpage poker idn pulsa

  10. 핑백: mơ thấy chim bồ câu

  11. 핑백: nằm mơ thấy cãi nhau danh so ma

  12. 핑백: buffstreams

  13. 핑백: mơ thấy voi

  14. 핑백: mơ thấy sếp cũ

  15. 핑백: những cách khiến chàng yêu mình hơn

  16. 핑백: site url

  17. 핑백: https://jacksontnpainters.com/

  18. 핑백: dewaqq

  19. 핑백: digital transformation

  20. 핑백: fish spatula yourfishguide.com

  21. 핑백: facebook sign in

  22. Wonderful blog! Do you have any suggestions for
    aspiring writers? I’m planning to start my own blog soon but
    I’m a little lost on everything. Would you advise starting with a free platform like WordPress or
    go for a paid option? There are so many choices out
    there that I’m totally confused .. Any ideas? Kudos!

    My blog post: slotpulsa303.xyz

  23. Hi there would you mind stating which blog platform you’re using?
    I’m planning to start my own blog in the near future but I’m
    having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems different then most blogs and I’m looking for something completely
    unique. P.S Sorry for getting off-topic but I had to ask!

    Feel free to surf to my web blog: link poker online

  24. 핑백: http://www.laguqqid.club/

  25. Very good site you have here but I was wondering if you
    knew of any discussion boards that cover the same topics talked about here?
    I’d really like to be a part of group where
    I can get feedback from other knowledgeable people that share the
    same interest. If you have any suggestions, please let me know.
    Thank you!

    my blog daftar judi online

  26. Wonderful beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog site?
    The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept

    Also visit my web page; slot via pulsa

  27. 핑백: คาสิโน

답글 남기기