Random Logic l Forum.NET l 20061.NET reflection Forum.NET 3 rd Meeting ● February 15, 2006 By Damián Laufer.

Slides:



Advertisements
Similar presentations
By Sam Nasr September 28, 2004 Understanding MSIL.
Advertisements

Microsoft SharePoint 2010 technology for Developers
Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
.NET Framework Overview. Whats in the 1.1 Framework physical assemblies physical assemblies Hundreds of namespaces Hundreds of namespaces.
CS 31003: Compilers ANIRUDDHA GUPTA 11CS10004 G2 CLASS DATE : 24/07/2013.
.NET IL Obfuscation Presented by: Sarath Chandra Dorbala.
The Type System1. 2.NET Type System The type system is the part of the CLR that defines all the types that programmers can use, and allows developers.
Case, Arrays, and Structures. Summary Slide  Case Structure –Select Case - Numeric Value Example 1 –Select Case - String Value Example  Arrays –Declaring.
C++ data types. Structs vs. Classes C++ Classes.
.NET Attributes and Reflection “What a developer needs to know……” Dan Douglas Blog:
VB Classes ISYS 512. Adding a Class to a Project Project/Add Class –*** MyClass is a VB keyword. Steps: –Adding properties Declare Public variables in.
Introducing JavaBeans Identify the features of a JavaBean Create and add a bean to an application Manipulate bean properties using accessor and mutator.
Jason Morrill NCOAUG Training Day February, 2008
Overview of Microsoft.Net and Vb.Net ITSE 2349 Spring 2002 Material from Microsoft.Net an Overview for ACC faculty by Stuart Laughton and Introduction.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Agenda Journalling More Embedded SQL. Journalling.
.NET Framework Introduction: Metadata
Advanced Java Programming Lecture 5 Reflection dr hab. Szymon Grabowski dr inż. Wojciech Bieniecki
CIS NET Applications1 Chapter 2 –.NET Component- Oriented Programming Essentials.
Bruno Cabral Summary Vision Statement Process and Methodology Key Features Application scenarios What can we really do with RAIL?
Understanding Code Compilation and Deployment Lesson 4.
Bacon A Penetration and Auditing Framework Hernan Gips
Reflection in.Net Siun-Wai Seow. Objective Explain.NET Reflection When to use it? How to use it? Topic is in the final exam.
ASSEMBLIES AND THE GAC CHAPTER 1, LESSONS 4-7 & LAB.
C# Programming Fundamentals of Object-Oriented Programming Fundamentals of Object-Oriented Programming Introducing Microsoft.NET Introducing Microsoft.NET.
ICONICS ActiveX ToolWorX V 6.1.
.NET Framework Danish Sami UG Lead.NetFoundry
Integrated Development Environment (IDE)
C# D1 CSC 298 Elements of C# code (part 2). C# D2 Writing a class (or a struct)  Similarly to Java or C++  Fields: to hold the class data  Methods:
Generic API Test tool By Moshe Sapir Almog Masika.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
AUC Technologies Projects Consulting, Development, Mentoring, and Training Company Application Foundation Presented By : Naveed Sattar Software Engineer.
ABHISHEK BISWAS.NET Reflection Dynamically Create, Find and Invoke Types.
Effective C# 50 Specific Way to Improve Your C# Item 42, 43.
Created By: Kevin Cherry. A library that creates a display to run on top of your game allowing you to retrieve/set values and invoke methods.
Java Programming: Advanced Topics 1 JavaBeans Chapter 8.
Reflection.NET Support for Reflection. What is Reflection Reflection: the process by which a program can observe and modify its own structure and behavior.
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Application Ontology Manager for Hydra IST Ján Hreňo Martin Sarnovský Peter Kostelník TU Košice.
Attributes C#.Net Software Development Version 1.0.
Oracle Forms Oracle Forms Builder provides various tools, which have powerful Graphical User Interfaces (GUI's) to design such forms. All objects, properties,
Module 4: Deployment and Versioning. Overview Introduction to Application Deployment Application Deployment Scenarios Related Topics and Tools.
Bruno Cabral “Reflection, Code Generation and Instrumentation in the.NET platform” University of Coimbra.
Reflection Programming under the hood SoftUni Team Technical Trainers Software University
Random Logic l Forum.NET l State Machine Mechanism Forum.NET 1 st Meeting ● December 27, 2005.
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
.Net Reflection Taipan Tamsare. Overview Reflection core concepts Exploring metadata Detail information Attributes Building Types at runtime.
METADATA IN.NET Presented By Sukumar Manduva. INTRODUCTION  What is Metadata ? Metadata is a binary information which contains the complete description.
CHARLES UNIVERSITY IN PRAGUE faculty of mathematics and physics Advanced.NET Programming I 7 th Lecture Pavel Ježek
Random Logic l Forum.NET l Localization & Globalization Forum.NET ● May 29, 2006.
Creating and Using Objects, Exceptions, Strings
Lecture on Oracle Forms
Reflection SoftUni Team Technical Trainers C# OOP Advanced
Microsoft .NET 3. Language Innovations Pan Wuming 2017.
Forum .NET 4rd Meeting ● March 6, 2006
Object-Orientated Programming
IBM AS 400 online Training in Hyderabad
C# Programming: From Problem Analysis to Program Design
Presentation on Object Oriented programming Topic
CS360 Windows Programming
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
VISUAL BASIC.
Virtual Agent Integration
be.as scheduling methods
Java Programming: Advanced Topics
Jim Fawcett CSE775 – Distributed Objects Spring 2006
C++ data types.
Unit – V Data Controls.
Presentation transcript:

Random Logic l Forum.NET l NET reflection Forum.NET 3 rd Meeting ● February 15, 2006 By Damián Laufer

Random Logic l Forum.NET l Agenda  What is reflection  Getting metadata  Object creation / use  Embedded resources  Performance issues  Security (!)  Tools

Random Logic l Forum.NET l What is Reflection? -A set of classes that allow you to access and manipulate assemblies and modules, and the types and the metadata that they contain.

Random Logic l Forum.NET l Getting metadata -Get metadata from an assembly -AssemblyName -Modules -Types (classes, interfaces, value types, enumeration types) -Members (constructors, methods, properties, fields, events) -Parameters

Random Logic l Forum.NET l (classes, interfaces, value types, enumeration types)

Random Logic l Forum.NET l Object creation -Load assemblies dynamically -Create classes -Call members -Get events

Random Logic l Forum.NET l Loading assemblies / types  Assemblies  Asm = Assembly.GetExecutingAssembly  Asm = Assembly.LoadFrom(“path”)  Asm = Assembly.load(“mscorlib”)  Types  Ty = asm.GetType(“Name”)  Ty = GetType(String)  Ty = anInstance.GetType  Ty = Type.GetType(“System.Int32”)

Random Logic l Forum.NET l Embedded resources -Bitmaps -Icons -Cursors -Audio files -Video files -String tables

Random Logic l Forum.NET l Performance issues -Slower (muuuuuuch slower) -So, why should you use it? -Task manager -Data bound list view control -data row class loader (CRUD)

Random Logic l Forum.NET l Security – hang on! -Getting private metadata -Calling private methods -Changing private fields -Getting private events (*) -Creating private classes

Random Logic l Forum.NET l Tools -MSIL Disassembler (Ildasm.exe) (.NET Framework) -Lutz Roeder's.NET Reflector

Random Logic l Forum.NET l Questions?

Random Logic l Forum.NET l Thank You