The document discusses elements of the .NET framework including CLR, class libraries, data and XML support, web services, web forms, and windows forms. It also covers assembly manifests, how .NET applications are compiled and executed, the base class library, value types vs reference types, and garbage collection. Key points include that the CLR allows managed code to run in a common language runtime, class libraries provide reusable functionality, and the assembly manifest contains metadata about an assembly.
GUI Programming in JAVA (Using Netbeans) - A ReviewFernando Torres
The powerpoint provides the user with a review of various concepts of GUI programming in JAVA. It covers various concepts like :
1. What is IDE ?
2. Various Methods and Properties of Components
3. Variable declaration
4. Data types
Etc
about visual basic
visual basic 6.0 v/s other version
visual basic programming
form in visual basic
objects in visual basic
important controls
visual basic statement
loop statement
conditional loop
do until loop
This presentation is a part of the COP2272C college level course taught at the Florida Polytechnic University located in Lakeland Florida. The purpose of this course is to introduce students to the C++ language and the fundamentals of object orientated programming..
The course is one semester in length and meets for 2 hours twice a week. The Instructor is Dr. Jim Anderson.
GUI Programming in JAVA (Using Netbeans) - A ReviewFernando Torres
The powerpoint provides the user with a review of various concepts of GUI programming in JAVA. It covers various concepts like :
1. What is IDE ?
2. Various Methods and Properties of Components
3. Variable declaration
4. Data types
Etc
about visual basic
visual basic 6.0 v/s other version
visual basic programming
form in visual basic
objects in visual basic
important controls
visual basic statement
loop statement
conditional loop
do until loop
This presentation is a part of the COP2272C college level course taught at the Florida Polytechnic University located in Lakeland Florida. The purpose of this course is to introduce students to the C++ language and the fundamentals of object orientated programming..
The course is one semester in length and meets for 2 hours twice a week. The Instructor is Dr. Jim Anderson.
Advantages of .NET over the other languages, overview of .NET binaries, Intermediate Language, metadata, .NET Namespaces, Common Language runtime, common type system, common Language Specification.
C# fundamentals – C# class, object, string formatting, Types, scope, constants, C# iteration, control flow, operators, array, string, Enumerations, structures, custom Namespaces
Object-oriented programming (OOP) with Complete understanding modulesDurgesh Singh
Object-oriented programming (OOP) is the core ingredient of the .NET framework. OOP is so important that, before embarking on the road to .NET, you must understand its basic principles and terminology to write even a simple program. The fundamental idea behind OOP is to combine into a single unit both data and the methods that operate on that data; such units are called an object. All OOP languages provide mechanisms that help you implement the object-oriented model. They are encapsulation, inheritance, polymorphism and reusability. Let's now take a brief look at these concepts.
CyberLab Training Division :
The .NET Framework is Microsoft's Managed Code programming model for building applications on Windows clients, servers, and mobile or embedded devices. Microsoft's .NET Framework is a software technology that is available with several Microsoft Windows operating systems. In the following sections describes , the basics of Microsoft .Net Frame work Technology and its related programming models.
What is Microsoft .Net Framework
what are the functions of microsoft .net framework?
Common Language Runtime in .Net Framework
How to Common Language Runtime
What is .Net Framework Class Library
What is Common Language Specification
What is Common Type System
What is Microsoft Intermediate Language
What is Portable Executable (PE) File Format
What is Microsoft Just In Time Compiler
How to Managed Code - Microsoft .Net Framework
What is .Net Framework Metadata
what is .Net Framework Assembly
What is Assembly Manifest
What is Global Assembly Cache
What is a .Net Satellite Assembly?
What are the contents of an Assembly?
How to Private Assembly and Shared Assembly
What is Microsoft .Net Strong Name
What is .Net Namespaces
What is Application Domain
What is Code Access Security
What is Garbage Collection
.Net Threads
For More Details.
Visit: http://www.cyberlabzone.com
VB.Net, .Net Framework, Visual Studio(Forms and console base application) programs
Shivangi Chaurasiya From Thakur Polytechnic
Studying in Diploma in 3rd Year (2020-2021)
NicheTech is the best mobile development company in Ahmedabad,
We are providing iOS Live Project Training Ahmedabad, We are offering iOS Training Ahmedabad.
Get the best iOS Live Project Training Ahmedabad .
iOS Live Project Training Ahmedabad, iPhone Live Project Training Ahmedabad, iPhone classes Ahmedabad, iPhone Course Ahmedabad
iOS Live Project Ahmedabad:- http://liveprojecttraining.in/
Download Complete Material - https://www.instamojo.com/prashanth_ns/
This VB.Net 4.0 with ADO.NET Programming contains 15 Units and each unit contains 40 to 60 slides in it.
Contents…
• Appreciate the Graphical User Interface (GUI)
• Identify the controls of GUI
• Identify the features of .NET Framework
• Use Windows project by using Visual Studio .NET integrated development environment
• Work with Windows Forms and Controls
• Perform drag-and-drop operations using clipboard
• Validate user input using controls and events
• Work with the CommonDialog class
• Create a custom dialog box
• Work with menus and MDI applications
• Work with ToolStrip control
• Identify the functionality of print components
• Identify the functionality of Crystal Reports
• Implement accessibility features in a .NET application
• Identify features of international applications
• Implement globalization and localization in a .NET application
• Create a help system using HTML Workshop
• Implement help system in .NET applications
• Work with built-in components in the .NET applications
• Work with user-defined components in the .NET applications
• Implement asynchronous programming
• Use the BackgroundWorker component
• Implement assemblies
• Implement various deployment strategies
• Use various editors in a deployment project
• Implement ClickOnce
• Configure and Secure a Windows application
ADO.NET 4.0 Architecture
• Work with XML
• Work with SQL queries
• Implement data binding to display values on the controls of a Windows form
• Filter the data to display the selected records
• Identify the connected and disconnected environment in ADO.NET
• Working in a connected environment
• Working in a disconnected environment
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
Advantages of .NET over the other languages, overview of .NET binaries, Intermediate Language, metadata, .NET Namespaces, Common Language runtime, common type system, common Language Specification.
C# fundamentals – C# class, object, string formatting, Types, scope, constants, C# iteration, control flow, operators, array, string, Enumerations, structures, custom Namespaces
Object-oriented programming (OOP) with Complete understanding modulesDurgesh Singh
Object-oriented programming (OOP) is the core ingredient of the .NET framework. OOP is so important that, before embarking on the road to .NET, you must understand its basic principles and terminology to write even a simple program. The fundamental idea behind OOP is to combine into a single unit both data and the methods that operate on that data; such units are called an object. All OOP languages provide mechanisms that help you implement the object-oriented model. They are encapsulation, inheritance, polymorphism and reusability. Let's now take a brief look at these concepts.
CyberLab Training Division :
The .NET Framework is Microsoft's Managed Code programming model for building applications on Windows clients, servers, and mobile or embedded devices. Microsoft's .NET Framework is a software technology that is available with several Microsoft Windows operating systems. In the following sections describes , the basics of Microsoft .Net Frame work Technology and its related programming models.
What is Microsoft .Net Framework
what are the functions of microsoft .net framework?
Common Language Runtime in .Net Framework
How to Common Language Runtime
What is .Net Framework Class Library
What is Common Language Specification
What is Common Type System
What is Microsoft Intermediate Language
What is Portable Executable (PE) File Format
What is Microsoft Just In Time Compiler
How to Managed Code - Microsoft .Net Framework
What is .Net Framework Metadata
what is .Net Framework Assembly
What is Assembly Manifest
What is Global Assembly Cache
What is a .Net Satellite Assembly?
What are the contents of an Assembly?
How to Private Assembly and Shared Assembly
What is Microsoft .Net Strong Name
What is .Net Namespaces
What is Application Domain
What is Code Access Security
What is Garbage Collection
.Net Threads
For More Details.
Visit: http://www.cyberlabzone.com
VB.Net, .Net Framework, Visual Studio(Forms and console base application) programs
Shivangi Chaurasiya From Thakur Polytechnic
Studying in Diploma in 3rd Year (2020-2021)
NicheTech is the best mobile development company in Ahmedabad,
We are providing iOS Live Project Training Ahmedabad, We are offering iOS Training Ahmedabad.
Get the best iOS Live Project Training Ahmedabad .
iOS Live Project Training Ahmedabad, iPhone Live Project Training Ahmedabad, iPhone classes Ahmedabad, iPhone Course Ahmedabad
iOS Live Project Ahmedabad:- http://liveprojecttraining.in/
Download Complete Material - https://www.instamojo.com/prashanth_ns/
This VB.Net 4.0 with ADO.NET Programming contains 15 Units and each unit contains 40 to 60 slides in it.
Contents…
• Appreciate the Graphical User Interface (GUI)
• Identify the controls of GUI
• Identify the features of .NET Framework
• Use Windows project by using Visual Studio .NET integrated development environment
• Work with Windows Forms and Controls
• Perform drag-and-drop operations using clipboard
• Validate user input using controls and events
• Work with the CommonDialog class
• Create a custom dialog box
• Work with menus and MDI applications
• Work with ToolStrip control
• Identify the functionality of print components
• Identify the functionality of Crystal Reports
• Implement accessibility features in a .NET application
• Identify features of international applications
• Implement globalization and localization in a .NET application
• Create a help system using HTML Workshop
• Implement help system in .NET applications
• Work with built-in components in the .NET applications
• Work with user-defined components in the .NET applications
• Implement asynchronous programming
• Use the BackgroundWorker component
• Implement assemblies
• Implement various deployment strategies
• Use various editors in a deployment project
• Implement ClickOnce
• Configure and Secure a Windows application
ADO.NET 4.0 Architecture
• Work with XML
• Work with SQL queries
• Implement data binding to display values on the controls of a Windows form
• Filter the data to display the selected records
• Identify the connected and disconnected environment in ADO.NET
• Working in a connected environment
• Working in a disconnected environment
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
The field of Information retrieval (IR) is currently undergoing a transformative shift, at least partly due to the emerging applications of generative AI to information access. In this talk, we will deliberate on the sociotechnical implications of generative AI for information access. We will argue that there is both a critical necessity and an exciting opportunity for the IR community to re-center our research agendas on societal needs while dismantling the artificial separation between the work on fairness, accountability, transparency, and ethics in IR and the rest of IR research. Instead of adopting a reactionary strategy of trying to mitigate potential social harms from emerging technologies, the community should aim to proactively set the research agenda for the kinds of systems we should build inspired by diverse explicitly stated sociotechnical imaginaries. The sociotechnical imaginaries that underpin the design and development of information access technologies needs to be explicitly articulated, and we need to develop theories of change in context of these diverse perspectives. Our guiding future imaginaries must be informed by other academic fields, such as democratic theory and critical theory, and should be co-developed with social science scholars, legal scholars, civil rights and social justice activists, and artists, among others.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
I have heard many times that architecture is not important for the front-end. Also, many times I have seen how developers implement features on the front-end just following the standard rules for a framework and think that this is enough to successfully launch the project, and then the project fails. How to prevent this and what approach to choose? I have launched dozens of complex projects and during the talk we will analyze which approaches have worked for me and which have not.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Csharp
1. C#.NET/VB.NET interview questions
Explain the elements of the .NET Framework.
a. CLR (Common Language Runtime): It is a common managed environment where
all the .net programs run. Supports multiple languages and has the garbage
collector.
b. .Net Framework Class Libraries: For each source code compiler (VB.NET, C#.NET,
etc.), there is a minimum set of coding standards that must be met. The minimum
set of coding standards that must be met to compile .NET code into MSIL code is
known as CLS - Common Language Specification. The role of the Common
Language Specification is to ensure that all generated code (MSIL) that meets the
minimum set of coding standards can operate successfully within the .NET
framework. THE CTS (Common Type System) handles conversion of
programming-language data types into .NET compatible (MSIL) data types. The
implicit benefit of the CTS is the reduction of development time when attempting
to coordinate data types between two sets of different programming-language
code.
c. Data and XML: Support for disconnected programming model and XML.
d. XML webservices: creating webservices for distributed architecture.
e. Webforms: Provides support and functionality for Web based UI.
f. Windows forms: Provides support and functionality for Windows based UI.
What is assembly manifest? What is the information it provides.
Assembly Manifest is a file that contains data that describes how the elements present
inside an assembly are connected to each other. The assembly manifest contains assembly
metadata to define the scope of the assembly and resolve references to resources and
classes.
Information provided by Assembly Manifest:
a. Assembly Name
b. Version Number
c. Culture
d. Strong name
e. List of files inside the assembly
f. Reference information
Explain how a .NET application is compiled and executed
Any code written in any .NET complaint languages when compiled, converts into MSIL
(Microsoft Intermediate Language) code in form of an assembly through CLS, CTS. IL is the
language that CLR can understand. On execution, this IL is converted into binary code by
CLR’s just in time compiler (JIT) and these assemblies or DLL are loaded into the memory.
2. Describe the .NET base class library
.NET’s Base class library exists in order to encapsulate huge number of common functions
and makes them easily accessible to the developer. .NET base class library provides the
functionality like ADO.NET, XML, Threading, IO, Security, Diagnostics, Resources,
Globalization, collections etc. It serves as the main point of interaction between developer
and runtime.
Explain the difference between value types and reference types
Value Type:
a. Stores the data.
b. The value of value types is stored on the managed stack.
c. One variable can have just one value.
d. They are lighter objects.
Reference Type:
a. Stores the reference to the data.
b. A reference type is allocated on the heap.
c. several variables can reference the same data
d. They are heavier objects.
Explain the importance of Imports and Using Statements.
Import statement: creates a property on the global object with the name supplied as
namespace and initializes it to contain the object that corresponds to the namespace being
imported. Any properties created using the import statement cannot be assigned to,
deleted, or enumerated. All import statements are executed when a script starts.
Using statements: mainly defines the namespaces whose objects will be used in the form.
This clearly solves 2 purposes: Defines all the namespaces that will be used in a form.
Secondly, reduces the hassle for the programmer to type the name of namespace again and
again while using classes/objects that belong to the namespace.
Explain the difference between a class and a structure
Class:
a. It is reference type.
b. Null value can be assigned to a variable in a class
c. It can have destructor.
d. All variables in classes are by default private.
e. Good to be used from architecture view as it provides high flexibility.
Structure:
a. It is value type.
b. Null value assignment is not feasible here.
c. Cannot have destructor.
d. All variables in structures are public.
e. Good to be used for simple data structures.
3. Explain how garbage collection manages the reclamation of unused memory.
The garbage collector assumes that all objects in the managed heap are garbage. It starts
walking the roots and builds a graph of all objects reachable from the roots recursively. It
stops when it attempts to add an object to the graph that it previously added. The graph
contains the set of all objects that are reachable from the application's roots. Any object/s
that is not in the graph is not accessible by the application, and is considered garbage.
Collection only occurs when the heap is full. In such a case, each and every garbage object
calls the Finalize method and reclaims the unused memory. 55. Explain how garbage
collection deals with circular references.
Explain how garbage collection deals with circular references.
The .Net runtime knows about all the references between the objects. It can identify all the
circular references that are reachable from the root and hence finalize them to free them all
at once if and when needed.
Explain the process of creating a menu using the MainMenu component.
MainMenu component is a component that allows the display of Menus at runtime on a form.
Process of creating Menu using MainMenu Component:
a. Add MainMenu component on Windows Form.
b. Menu designer allows deciding the structure of the main menu by selecting the
Type Here area and adding the Menu Items to be displayed on the menu.
c. Add functionality to Menu Items as required.
Explain the process of creating a context menu using the ContextMenu component
ContextMenu component provides the users with the ability to access some very frequently
used commands. Context menu works by right click of mouse. They mainly provide access
to commands particular to the control that has been clicked upon.
Process for creating context menus:
a. Open the windows form application.
b. Select ContextMenu component from toolbox.
c. A menu is added. Click on Type here and type in new Menu Items to be placed on
the Menu.
d. Provide the functionality.
e. Associate the context menu with the form or the control it is supposed to be related
to.
What is a delegate? Explain how to create it.
A delegate declares a ref type that references a named of anonymous method. Delegates
are secure and type-safe. Consider them as type safe function pointers.
public delegate void Del<T>(T item);
4. Del<int> d1 = new Del<int>(Notify);
Explain how to declare and raise events from your application.
Declare Events: “Event” keyword is used to declare an event.
public delegate void MyCustomHandler(object o, MyEventArgse);
public class MyEventArgs: EventArgs
{
public readonly int Age;
public MyEventArgs(int age)
{
Age = age;
}
}
public class MyCustomListener
{
public void Show(object o, MyEventArgs e)
{
Console.WriteLine(
"Age is {0}",
e.Age);
}
}
Describe how to implement event handlers and associate them with events.
public class MyClass
{
public static event MyCustomHandler MyEvent;
public static void Main()
{
MyCustomListener mcll = new MyCustomListener();
MyEvent += new MyCustomHandler(mcl1.Show);
GetAge();
}
public static void OnMyEvent(MyEventArgse)
{
if(MyEvent!=null)
MyEvent(new object(),e);
}
public static void GetAge()
{
MyEventArgse1 = new MyEventArgs(25);
5. OnMyEvent(e1);
}
}
What is Break Mode? How to set breakpoints?
Break mode is the state of an application when the execution gets paused and allows the
developer to edit the value in the current state. To attain a break mode we can do any of
the following steps:
a. Selecting Break from the Run menu (Ctrl+Break) or pressing the pause button.
b. Reaching to break point.
Setting up the break points:
a. Go to the line where you need to mark the breakpoint.
b. Click with mouse on left corner margin of that line.
c. Another way is to press F9
Describe how to step through code in .NET.
Steps to step through the code in .NET:
a. Start the program in debug mode.
b. When the first breakpoint is reached then step through can be done in one of the two
ways:
i. Press F10 to move to next line.
ii. Select debug menu and click on step over. This would step over the
breakpoint to next level.
c. Other options are: “Step Into” and “Step Out”.
Describe the debugging windows available in .NET.
Debug->Windows:
Breakpoints: displays a list of all the breakpoints and where they are. Shows condition when
that breakpoint will be hit if a condition exists and the Hit Count shows the number of times
that breakpoint has been hit.
Output: Displays the status messages for various features in the IDE. It shows the output
form a list of objects throughout debug mode of the application.
Immediate: This window allows the programmer to write code and verify values through
programming while debugging the application. It helps in checking the values of
objects/controls etc, and the conditions throughout the application in debug mode.
What are Debug and Trace classes? Explain how to use them to display error classes.
Both are used to help programmers find errors, occurring events and flow of code. In
release mode, however, debug class is disabled and only Trace class is valid to trap things in
a live application.
6. Both have assert functions to validate values.
Trace.WriteLine(variable value or comment).
Debug.WriteLine(variable value or comment).
We could create error handlers to trap unhandled exceptions trapped by Trace and Debug
class.
Describe how to create Trace Listeners and log Trace output.
[Conditional("TRACE")]
public static void InitializeUnhandledExceptionHandler()
{
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CutomExceptionHandler);
}
public static void CustomExceptionHandler(object sender,
UnhandledExceptionEventArgs args)
{
Exception e=(Exception) args.ExceptionObject;
Trace.WriteLine("Exception: "+e.Message+"n"+e.GetType() +
"nStack Trace:n"+e.StackTrace);
MessageBox.Show(
"An error has occurred:"+e.Message+"nin: "+e.GetType(),
"Fatal",
MessageBoxButtons.OK,
MessageBoxIcon.Stop,
MessageBoxDefaultButton.Button1);
Trace.Close();
Process.GetCurrentProcess().Kill();
}
[Conditional("DEBUG")]
public static void TrapDebug(string str)
{
Debug.WriteLine("Debug error: "+str);
}
What are Trace switches? Describe how to create and use Trace switches.
Trace switches allow us to filter, enable/disable the outputs through Trace. We can configure
them through the config file. 3 types of trace switches:
BooleanSwitch: Enable/Disable trace statements.
TraceSwitch and SourceSwitch: used for trapping particular Trace levels.
BooleanSwitch dataSwitch =
new BooleanSwitch("Comment", "module1");
TraceSwitch generalSwitch =
new TraceSwitch("comment",
"module1");
Explain how to configure Trace switches in the application’s .config file.
7. switches are configured using the .config file
<system.diagnostics>
<switches>
<add name="MyTraceSwitch" value="1" />
<add name="TraceSwitch2" value="1" />
</switches>
</system.diagnostics>
both are on.
Explain how exceptions are handled by the common language runtime in .NET.
The CLR uses a technique generally referred to as a two-pass exception review process.
What this means is that the CLR will process an exception in two passes. In the first pass,
the CLR will determine if there is a handler for the exception. This is done by reviewing the
entries in the SEH table; specifically it looks at the Try Offset and Try Length flags to see if
the exception occurred within a guarded block, and if so, whether the Flags entry dictates
that a handler exists for this type of occurrence. Let's assume that the CLR did find a
handler during the first pass. At that point the CLR begins a second pass of the SEH table
during which it will work through the execution phase of the exception management
process. So we can divide the two passes into a discovery pass, in which we determine
whether there is a handler in this method context to handle the exception; and an execution
pass, in which we actually execute the handler and any special rules.
When code throws an exception, the CLR looks up the call stack looking for a catch filter to
handle the exception. When it finds the relevant catch block, before executing the code, it
will execute all code in all finally blocks - starting from the try block that threw the
exception and stopping with the catch filter that matches the exception. when the CLR
encounters an exception for a method it will use the descriptors in the SEH table to
determine how to handle the exception, which code block is affected, and what handler
should be invoked.
Describe the different types of user-authored controls in NET.
User authored controls are which not part of the .net framework library. It includes both
custom controls and user controls.
a. Custom Controls: They look similar to ASP.NET controls. They can be created in
one of the 3 ways:-
a. Deriving a custom control from existing custom control.
b. Making a composite custom control by combining 2 or more existing controls
c. By creating a new control from scratch by deriving the control from its base
class.
b. User Controls: enables a part of ASP.NET page to be reused. The reusable part is
in form of a control with the extension .ascx. They look like to be a group of ASP.NET
controls which can be used over and over again.
Explain with code sample how to create an inherited control.
Steps to create inherited Control:-
a. Create a new project.
b. Add a custom control to the project.
8. c. Change the name of the class you need to inherit the control from the base class.
E.g. inherit the class from System.Windows.Forms.Button if the control s to be
inherited from a button class.
d. Implement the control with custom properties and featured needed by the control.
e. Override the OnPaint method if the control’s appearance needs to be changed.
f. Save the build the control
g. Reference you control into another or the same project and use the control.
Explain with code sample how to create a user control.
Steps to create a User control:
a. Select a project
b. Right click and add a new item (User Control - .ascx) to the selected project.
c. Add @Control Directive
d. Add all the controls that you want to be displayed on the User control as a part of
one or more web pages.
e. Write the code for all the tasks to be performed by the user control.
f. Create accessor methods for the outside world accessing this user control.
Using the User control:
a. Register the control on the webpage it needs to be used by putting @Register
directive.
b. Specify the following attributes to the register directive:
a. TagPrefix: defines the namespace in which the control would reside
b. TagName: defines the name with which control is referred
c. Src: Path of where the control is kept.
c. Control is then used on the page using the following code:
<TagPrefix:TagName />
Explain with code sample how to create a custom control.
Steps to create a custom control:
a. Create a new project.
b. Add a custom control to the project.
c. Change the name of the class you need to inherit the control from the base class.
E.g. inherit the class from System.Windows.Forms.Button if the control s to be
inherited from a button class.
d. Implement the control with custom properties and featured needed by the control.
e. Override the OnPaint method if the control’s appearance needs to be changed.
f. Save the build the control
g. Reference you control into another or the same project and use the control.
Describe the .NET Framework architecture.
.Net framework has two components:
1. .Net framework class library
2. Common language runtime.
FCL facilitates the types through CTS which are common to all the supported languages.
The CLS ensures that all languages are interoperable. This ensures that all code is managed
.i.e. code which is converted to MSIL.
9. The CLR has the class loader that load the MSIL code of an application into runtime, which is
then converted into native code by the JIT complier. The CLR manages code and provide
services such as memory management, threading, remoting, type safety, security,
Exception handling etc.
What is the managed execution process?
Managed execution process is a process where CLR executes the managed code. The steps
involved in this process are:
a. Choosing the right compiler
b. Compiling the code to MSIL. This also generates the required metadata.
c. Compile the MSIL ode to native machine code.
d. Executing the code with the variety of services available.
What are assemblies? Describe the types of assemblies.
Assembly is a compiled output of program which are used for easy deployment of an
application. They are executables in the form of exe or dll. It also is a collection of resources
that were used while building the application and is responsible for all the logical
functioning.
Types of assemblies:
a. Private Assemblies: are accessible by a single application. They reside within the
application folder and are unique by name. They can be directly used by copying and
pasting them to the bin folder.
b. Shared Assemblies: are shared between multiple applications to ensure reusability.
They are placed in GAC.
c. Satellite Assemblies: are the assemblies to provide the support for multiple
languages based on different cultures. These are kept in different modules based on
the different categories available.
Explain the role of assemblies in .NET.
Assemblies are main building blocks. An assembly maybe defined as a unit of deployment. A
single assembly is a collection of types, and resources. The CLR does not understand any
types that are outside assemblies. The CLR executes the code in assemblies as they contain
MSIL code. They define type, version and security boundaries.
Assemblies in .Net are a solution to the Dll hell problem as one can use different versions of
same assembly in different applications at the same time. To make a shared assembly, we
need to register it with GAC where as private assemblies reside in applications directory.
What are windows services? How are they differ from other .NET application?
Windows services are a way to create continuously running applications in the background.
They don’t interfere with other applications and can be run whenever a machine starts. They
can be paused if and when needed and quietly run in the background without the need of
any user intervention. Windows services can be configured to run under specific user
accounts. They run under their own windows sessions and are ideal for tasks that need to
be performed periodically or for monitoring requirements.
Main difference between windows services and other .Net applications lies in the fact that
they run in their own windows session without any user intervention in the background.
10. For more questions with answers, follow the link below:
http://www.careerride.com/CSharp-Interview-Questions.aspx
We do not warrant the correctness of content. The risk from using it lies entirely with the user. While using this
document, you agree to have read and accepted the terms of use and privacy policy.