Friday, September 30, 2011
Wednesday, September 28, 2011
SharePoint list to InfoPath dropdown control
How to add SharePoint column values to InfoPath dropdown control
Step 1: Tools -> Data connections
Step 2: Add a new data connection to receive data
Step 3: Select from where do you want to receive your data
Select SharePoint Library or List
Step 9: Select the column which you need in the drop down box
In you SharePoint site! :
Tuesday, September 27, 2011
Friday, September 23, 2011
.Net Interoperability
- .Net framework supports interoperability.
- Interoperability is the ability of two systems to communicate with each other, The first system could be built on .Net framework and the other system can be of some other technology.
.Net Interoperability is of two types:
- Managed code interoperability
- Unmanaged code interoperability
Manged code interoperability:
Create a class library in c sharp, which has a method called Hello()
Call the c sharp class library in VB project.
Sunday, September 18, 2011
Application of CSharp timer
We can user timers to periodically to check the server and the system is up and running
Thursday, September 15, 2011
Reflection example
Reflection is a feature in .Net which enables us to get some information about the object in runtime.That information contains data of the class.also it gets the name of the methods inside the class and constructor of the objects.
read more
read more
Difference between Array and Array List
- An array can contain only one data type, while array list can contain any data type in the form of object.
- With array you cannot dynamically increase or decrease the size of the array, but array list automatically increases the size, when any element or object is added.
Wednesday, September 14, 2011
When to use Interface and Abstract Class
- Interface members cannot have a definition
- All interface members should be implemented by the derived class
- An abstract class can have an instance field in it. The derived classes can assess this field through the base syntax. This is the key difference between abstract and interfaces.
Abstract class can contain non abstract method.
Interface: |
Monday, September 12, 2011
When to use Interface
If the requirement is like that something in your design changes frequently then go for interfaces instead of classes .
read more
read more
Friday, September 9, 2011
Friday, September 2, 2011
C# Constants
- Constants are immutable values which are known at the compile time.
- They do not change for the life of the program
- C# built in types may be declared as constants
- User-defined types including Classes, structs , arrays cannot be 'const'
- C # does not support const methods,properties or events
- When a complier encounters a const identifier in c# source code, it substitutes the literal value into the intermediate language(IL) code the produces
- Because there is no variable address associated with a constant at run time.
- Constant fields cannot be passed by reference
- Constants are marked by public,private,protected,internal.
What are the types of C# members
Types of C# members:
- Fields
- Constants
- Properties
- Methods
- Constructors
- Destructors
- Events
- Indexers
- Operators
- Nested Types
Subscribe to:
Posts (Atom)