Part 53 C# Tutorial Reflection in C#

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 129

  • @jijianpeng7368
    @jijianpeng7368 9 років тому +22

    awesome

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  9 років тому +4

      +Ji Jianpeng Thank you for the feedback. I am very glad you found the videos useful.
      I have organised all the video tutorials in to playlists, which could be useful to you
      ua-cam.com/users/kudvenkatplaylists?view=1&sort=dd
      If you need physical DVDs or you want to download all the videos for offline viewing please order them using the link below
      www.pragimtech.com/kudvenkat_dvd.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ua-cam.com/video/y780MwhY70s/v-deo.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ua-cam.com/users/kudvenkat
      If you like these videos, please click the THUMBS UP button below the video.
      We like to see these free video tutorials helping others as well. Please share the link with your friends and family who you think would also benefit from them.
      Thanks
      Venkat

    • @SoftwareDeveloperAspNet
      @SoftwareDeveloperAspNet 3 роки тому

      @@Csharp-video-tutorialsBlogspot how to get particular method name using reflection. for example in class i have two methods Test,Practise when I am in Test method I want to print method name Test,when in Practise method I want to print Practise as method name. Kindly guide me on this

  • @thedjay247
    @thedjay247 8 років тому +10

    this is literally the best content on C# reflection. It cannot be simplified better than this... Venkat Sir, You are the best.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +4

    Hi ADO.NET concepts are covered in ADO.NET & ASP.NET tutorial series. The description of this video contains a link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists.
    I am now in the process of recording and uploading a video tutorial on Entity Framework and LINQ. Good Luck.
    To receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. If you like these videos, please click on the THUMBS UP button below the video.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +5

    You are very welcome. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

    • @SoftwareDeveloperAspNet
      @SoftwareDeveloperAspNet 3 роки тому

      how to get particular method name using reflection. for example in class i have two methods Test,Practise when I am in Test method I want to print method name Test,when in Practise method I want to print Practise as method name. Kindly guide me on this

  • @averylazyboy
    @averylazyboy 8 років тому +20

    Every time I click on a video in this series, I feel like I'm taking a red pill from the matrix.
    Or waking up from another dream layer in Inception.

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +6

    Hi, Thank you very much for taking time to give feedback. I am very glad you liked these videos. You are right, the mic that I was using was horrible. Sorry about that. I got a new mic now. Unfortunately the videos in C#, were recorded before I realized the mic was bad. However, asp.net, sql server, mvc, gridview tutorials should be fine as I have used new mic to record them. I will try to rerecord those videos again, but as you know it is a time consuming process.

    • @SoftwareDeveloperAspNet
      @SoftwareDeveloperAspNet 3 роки тому

      @kudvenkat how to get particular method name using reflection. for example in class i have two methods Test,Practise when I am in Test method I want to print method name Test,when in Practise method I want to print Practise as method name. Kindly guide me on this

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому

    Nope constructors cannot have return type. Sure, will record and upload wcf & wpf videos very soon. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists. Please share the link with your friends. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

  • @nimatsergiu2942
    @nimatsergiu2942 3 роки тому

    I have been watching some of your videos; however, after watching this, I promised myself to watch 1 video from your channel every day. There is something in how you understandably explain things, even for those not 'advanced' in programming. I thank you very much for sharing this knowledge.

  • @javarox
    @javarox 10 років тому +2

    Greatly impressed at how clear your examples are. Good work, man!

  • @SenthanJey
    @SenthanJey 11 років тому

    Thank you very much. Very good explanations. I tried to understand Reflections by reading before but from your explanation I got it right away. Thank you again.

  • @jgmacho
    @jgmacho 9 років тому +2

    Best explanation of reflection I have stumbled upon! thank you.

  • @monstruono1
    @monstruono1 9 років тому +8

    The best tutorials. Thank you so much!

  • @plankytronixx
    @plankytronixx 7 років тому

    ...at last, a developer making videos on UA-cam who can both code AND communicate. Well done - I understood your video.

  • @abhishekvaishnav
    @abhishekvaishnav 9 років тому +3

    You're doing really a great job...best teaching skills. 1000 likes

  • @Ankit-mw6ev
    @Ankit-mw6ev 4 роки тому

    Take a bow, awesome explanation.

  • @techankurutube
    @techankurutube 8 років тому

    very very nice video, finally i got to understand what exactly Reflection is all about. Thanks a lot for making this videos and posting it. Really it is very very useful.

  • @MuhammadWaseem-cb7nm
    @MuhammadWaseem-cb7nm 5 місяців тому

    That's Awesome Lecture...I learned a lot from you. Stay Blessed.

  • @ayyapurajuprasanth8574
    @ayyapurajuprasanth8574 4 роки тому

    Superb sir meru baaga chepparu... Me Anni videos superb gaa unnai loved it

  • @chetanpatil6093
    @chetanpatil6093 2 роки тому

    Thank you! for making this alien concept 'Reflection', so simple to understand.

  • @kareemzarif3008
    @kareemzarif3008 Рік тому

    you can conduct great information just in simple way

  • @recojonsen
    @recojonsen 12 років тому

    Very helpful video. Thank you for taking the time to make these excellent tutorials.

  • @bhagatamit85
    @bhagatamit85 7 років тому

    Nice video... I read many articles about. Net reflection but could not understand.. U explained it in very simple manner.. Thanks

  • @MexicanCat999
    @MexicanCat999 5 років тому

    wow that was helpful, very clear, very good examples. Thanks a ton!

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 років тому +1

    Sure, currently I am working on asp.net videos, as soon as I am done with it. I will handle your request. Thanks for the feedback.

  • @meusingit2137
    @meusingit2137 4 роки тому

    First, We used Reflection for logging the base method to refer in case of errors. Now, I am watching this video. Thanks, Venkat!

  • @MoamenMo7amed
    @MoamenMo7amed 10 років тому +1

    Great tutorial... Thank you very much

  • @Jackismycopilot
    @Jackismycopilot 10 років тому +2

    Amazing explanation. Thank you very much.

  • @dbohls
    @dbohls 12 років тому

    Very detailed and helpful explanation. Well done and thanks!

  • @TooDaloo_fm
    @TooDaloo_fm 6 років тому

    Very good tutorial. Thank you very much.

  • @ИванинаЯнчева-э6т
    @ИванинаЯнчева-э6т 4 роки тому

    Thank you so much for this tutorial ! :)

  • @bal00085
    @bal00085 10 років тому

    Great Example! Thank you! Keep up the good work

  • @thebookswithjung8212
    @thebookswithjung8212 5 років тому

    I have learned a lot from your tutorials.
    Thanks^^

  • @leokaz
    @leokaz 6 років тому

    Thank you! You are great teacher!

  • @gil.0007
    @gil.0007 8 років тому

    venkat u r amazing.........
    BIG thanks.........god bless you

  • @mostafasafarian9134
    @mostafasafarian9134 3 роки тому

    thank you! this was a great tutorial!

  • @SandeepSingh-im9oq
    @SandeepSingh-im9oq 11 років тому

    I am preparing for 70-483 exam and your tuts are very helpful, thanks a ton.

  • @shai1214
    @shai1214 11 років тому

    Incredible explanation, finally understood it :) Thank you!

  • @ПетарЧуровић
    @ПетарЧуровић 8 років тому

    Great tutorial!Thanks!

  • @hitanshimehta430
    @hitanshimehta430 6 років тому

    As always amazing!!!!!

  • @paddyrelangi7852
    @paddyrelangi7852 11 років тому

    Very helpful all your videos are so informative...i went to school and took some private class....but nothing is close your explanation. Thank you so much. .....

  • @wilsonci
    @wilsonci 5 років тому

    Great job!

  • @Marioajavon
    @Marioajavon 8 років тому

    Great video..many thanks

  • @TimothySmithDev
    @TimothySmithDev 12 років тому

    Thanks for this! It was exactly what I needed.

  • @__juice
    @__juice 6 років тому

    Bless you for this tutorial.

  • @JureMali
    @JureMali 5 років тому +1

    Perfect!

  • @ckschumeister411
    @ckschumeister411 7 років тому

    so informative! thank you

  • @masterbonzala
    @masterbonzala 7 років тому

    Reflection is really fun.

  • @kavithakesavan8938
    @kavithakesavan8938 11 років тому

    Great Tutorial.Thanks a Lot

  • @kianaparsi8223
    @kianaparsi8223 10 років тому +1

    Thanks a lot fro your wonderful records, you talk a lot abot "at run time" or "at compile time". I have a little idea what it's about but I would be very grateful if you could have a separate session abot these very important subjects, thanks a lot

  • @feliperibeirosilva900
    @feliperibeirosilva900 5 років тому

    amazing video.

  • @LA-dm6kj
    @LA-dm6kj 10 місяців тому

    Thank you for this.

  • @tornikeonoprishvili6361
    @tornikeonoprishvili6361 10 років тому +1

    Great video, u have my tnx m8

  • @jungzuma8410
    @jungzuma8410 3 роки тому

    非常好~~

  • @virangyasenevirathne3165
    @virangyasenevirathne3165 7 років тому

    Skilled teacher

  • @iamsmzubair
    @iamsmzubair 11 років тому

    Your tutorials are awesome!!!....waiting for the more ADO tutorials

  • @deerajpatel5196
    @deerajpatel5196 12 років тому

    Good work !

  • @icosmini
    @icosmini 10 років тому

    I like! Thanks!

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому

    Hi, thank you very much for taking time to give feedback.

  • @nandinims9472
    @nandinims9472 11 років тому

    Hey Venkat,
    Your sessions are soo good and I regret that I am finding them in youtube so late.
    Can you please upload some sessions on WCF, WPF, MS BI. That will be really helpful to the Microsoft dev community.
    Keep up your good work.
    Cheers,
    Nandini

  • @NbA1992
    @NbA1992 12 років тому

    thanks!..Explicit explanation!..;D

  • @mohammedalkhfaji161
    @mohammedalkhfaji161 11 років тому

    Well done and thanks

  • @nareshkumarvanga3127
    @nareshkumarvanga3127 Рік тому

    Super sir 🎉

  • @TurnGameOn
    @TurnGameOn 9 років тому +1

    thanks very much for this!

  • @pas0003
    @pas0003 11 років тому +1

    Thanks so much for a comprehensive tutorial! Liked! :)
    Just one suggestion - the sound quality is not very good and so is the volume levels. Not sure if you are moving in and away from the mic every now and then?

  • @Ayubajbnabi
    @Ayubajbnabi 11 років тому

    Excellent.

  • @ryandsouza4102
    @ryandsouza4102 12 років тому

    wonderful tutorial!
    I want to use reflection to get pertinent information from a WCF proxy class.

  • @abhinavkumar8271
    @abhinavkumar8271 8 років тому

    Awesome..

  • @gerardduffy1
    @gerardduffy1 11 років тому

    Excellent and thank you

  • @vineeezee
    @vineeezee 12 років тому

    Excellent tutorial. I check your other videos but could not find any example on 3rd point of you presentation where you discussed about having configuration file to create reflection code by late binding. It'll really help if you can provide a similar video for that as well.

  • @RoshanLakmalTinTin
    @RoshanLakmalTinTin 9 років тому +1

    Beautiful :) :) :)

  • @gregorym7598
    @gregorym7598 5 років тому +1

    Hi Venkat,
    thank you for all, your explanation here is as good as any other, but I have question about Exception I have in: PropertyInfo[] properties = T.GetProperties();
    so I will appreciate if you help me (you or someone else) how to handle this.
    It's about when you run program at 13:35.
    return to me: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    instead: Id
    Name
    p.s. Of course, I did everything like you. (Only difference is that I am using VS 2019)

    • @abdullahmohammad5613
      @abdullahmohammad5613 2 роки тому

      I had the same issue, hover over the Customer class and write the directory name as shown by the intelligence. Also make sure that the customer class is defined outside the Pragim class.

  • @MrHr1981
    @MrHr1981 11 років тому

    really good..

  • @info2106
    @info2106 11 років тому +1

    Thanks for your video!
    One question: when you use "Type T=Type.GetType("Pragim.Customer");", is T created as an object of "Type" at the same time? I mean, we do not need to write" Type T=new Type();" at first?

  • @unlimitedRewind1
    @unlimitedRewind1 5 років тому

    Thank you so much.

  • @mamathasreenivas
    @mamathasreenivas 11 років тому

    excellent... 5/5

  • @bahadircoskuner
    @bahadircoskuner 11 років тому

    First of all great tutorial for whom have troubles about reflection. Also ı have a question; Do you have tutorials about LINQ, PLINQ, ADO.NET ı mean about c#-database interaction? Thank you again

  • @mgfhd
    @mgfhd 10 років тому +2

    Cannot thank you enough!

  • @markhynes2588
    @markhynes2588 11 років тому

    Hi Venkat,
    Great tutorial, excellent work.
    Could you or someone explain to me, why its not necessary to have the new keyword, when initialising an instance of the Type class?????
    Thanks,
    Mark

  • @pas0003
    @pas0003 11 років тому

    You could move the mic further away (especially if you have a shotgun mic) and up the gain - that would help equalize the volume

  • @SuperMichielv
    @SuperMichielv 11 років тому

    Because the static method Type.GetType does exactly the same thing, creating a Type object which is referenced on the left side of the equal sign with Type T

  • @pas0003
    @pas0003 11 років тому

    Too time consuming to re-record..
    Thanks for the videos once again!

  • @lukecxu
    @lukecxu 9 років тому +3

    Hi, you're doing really great at teaching. I was wondering.. do you have any videos about design patterns?

    • @sydianalyssa4319
      @sydianalyssa4319 9 років тому +2

      +Luke Xu I concur, I could really use some decent design pattern videos as well.

    • @abhishekdas459
      @abhishekdas459 7 років тому

      He does have.... Go to his playlist n check it.👍

  • @soldirix2666
    @soldirix2666 10 років тому +1

    Great video! Also, what is the difference between reflection and introspection?

  • @dineshvasamshetty2715
    @dineshvasamshetty2715 11 років тому

    very nice

  • @sksh1rm1
    @sksh1rm1 11 років тому

    hello sir
    many many thanks for your video series very helpful for many beginners like me
    sir i have question that" does constructor have a return type if it is called as special method?"
    and yes i am waiting for your video series on wcf and wpf
    again many many thanks to you

  • @alwaysinagoodshape5327
    @alwaysinagoodshape5327 4 роки тому

    Since Id creates a get_Id automatically I wondered what happened if I manually implemented that method with the exact same name of the method that is generated automatically.
    If you do so you'll get the compiler error, with red lines beneath your get/set saying: "Type 'Typename' already reserves a member called 'get_PropertyName' with the exact same parameter types."
    I wonder why the reserved method doesn't start with symbols that the compiler accepts, yet doesn't allow us to manually use, because if i recall correctly, this is how c# reserved certain autogenerated methods.

  • @rhubarbcheese
    @rhubarbcheese 9 років тому

    Where do I have examples of these I can see potential usefulness for those, but I would really like to se examples!
    "2. Late binding is creating a class at runtime, instead of at compile time.. To dynamically create an instance of a type, about which we dont have any information at compile time. So reflection enables you to use code that is not available at compile time"
    3. Consider two alternate implementations of an interface. You want the user to pick one using a config file. With reflection you can s imply read the name of the class whose implementation you want to use from the config file, and instantiate an instance of that class. This is another example for late binding using reflection.
    "

  • @subedi04
    @subedi04 11 років тому

    Hi Venkat, Any plan on creating videos on ADO.NET or entity framework and LINQ.

  • @WVNicaragua
    @WVNicaragua 12 років тому

    I finally understand

  • @Tall-Cool-Drink
    @Tall-Cool-Drink 4 роки тому

    Once you get a list of properties, can you set values to them, or get values from them?

  • @sunilkumare7868
    @sunilkumare7868 11 років тому

    am was so thank full for you people

  • @mohammadalhayani5932
    @mohammadalhayani5932 4 роки тому

    thank u a lot

  • @BaluTM
    @BaluTM 5 років тому

    very good tutorial,
    One question here..
    How can you get the value of property using T,
    like T.ID = ?
    and how can I crate object of Customer Class using T
    Thank You.

  • @Shubham16ify
    @Shubham16ify 7 років тому

    I have a doubt, for ex in the GetType("NamespaceA.ClassA"), this namespaceA can belong to the same or any other assembly as well?

  • @bindupathula4490
    @bindupathula4490 4 роки тому

    Hi sir, I want to remove trailing and leading spaces of all properties from a list of object.please suggest the best way to do this

  • @mohammedshahbaz1976
    @mohammedshahbaz1976 4 роки тому

    Any Best toturial to learn Windows Forms Application using C# ??

  • @rickywisnadri3318
    @rickywisnadri3318 12 років тому

    kud, do you have any good quality of the video ? B'coz it's to blur seeing at youtube.

  • @lakshyamathur5943
    @lakshyamathur5943 6 років тому

    how can I use reflection in a MVC structure to read property of a class in a web application?

  • @jessolinabanji1565
    @jessolinabanji1565 6 років тому

    thank you

  • @ganeshpandhwale3075
    @ganeshpandhwale3075 3 роки тому

    thanks