Wednesday, 31 August 2016

Our Bollywood is Fan of Apple iPhone7



Apple's iPhone 7 is expected to launch in 2016, bringing a new design and new features.
 

EXPECTED FEATURES

  1. No headphone jack
  2. Flush, pressure-sensitive home button
  3. Improved water resistance
  4. Dual-lens camera for iPhone 7 Plus
  5. Darker 'Space Black' color option
  6. Redesigned antenna bands
  7. Two screen sizes
  8. Design similar to iPhone 6s
  9. Upgraded processor



Chapter-14 Attribute in C#





Introducing Attributes
1)      An object is described by the values of its attributes.
2)      An attribute is a declarative tag that is used to convey information to runtime about the behavior of programmatic elements such as classes, enumerators, and assemblies.
3)      A declarative tag is depicted by square ([ ]) brackets placed above the definition of an element such as a class or a method.
4)      Attributes are used for adding metadata, such as compiler instructions and other information such as comments, description, methods, and classes to a program.
5)      The .NET Framework is equipped with a number of predefined attributes.




Chapter-13 C# Events in Delegates





Working with C# Events

1.       An event is an action or occurrence, such as clicks, key presses, mouse movements, or system generated notifications.
2.       Applications can respond to events when they occur.
3.       Events can be specified in interface. Implementing classes must supply the event. Events can be specified as abstract. A derived class must implement the event. An event can be as sealed. An event can be as virtual which means that it can be override in a derived class.
4.       Events are members of a class and are declared using the event keyword.
Event event-delegate obj;




Tuesday, 30 August 2016

Chapter-12 Delegate C#




Delegates in C# is object that can referred to a method. When you are creating a delegate, you are creating an object that can hold reference of method. Delegate can invoke the method to which refers.

 


Sunday, 28 August 2016

Chapter-11 Threading in C# Part-3




Using Synchronization in Threads

When using Multiple threads, it is sometimes necessary for a program to coordinate the activities of two or more threads this process is known as Synchronization.
1.       In a multithreaded application, when threads need to share data with each other, the application should ensure that one thread does not change the data used by the other thread.
2.       C# enables you to coordinate the actions of multiple threads by using synchronized methods or synchronized statements.




Chapter-11 Threading in C# Part-2




 Working with Threads
1.          In C#, you create a thread by creating an object of type Thread, giving its constructor a ThreadStart reference, and calling the new thread’s Start() method.
2.          The new thread starts executing asynchronously with an invocation of the thread’s method.
3.          There are various methods available with the Thread class. Using these methods, you can control the execution of threads.




Saturday, 27 August 2016

Chapter-11 Threading in C# Part-1




A Thread is a dispatch able unit of execution of program. In thread based multitasking program , processes have a least one thread for many process. A thread can be in one of several states .It can be running , ready to run , suspended , resumed , terminated.



Friday, 26 August 2016

Chapter-10 Exception Handling Part-2




Using Multiple catch statements

You can use multiple catch with one try statement.However catch must have different type of exception. Once the exception is caught the catch block then corresponding next catch block will not execute.