Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

What's the benefit of Scala (singleton) object vs. typical class level artifacts -


i understand 1 of main benefits using object is, real objects instead of system wide functionality. objects system wide accessible.

beside of being more "pure" additional benefit scala "objects" offer.

i bet there number can't figure out which.

  • objects independent entities, e.g. can used method arguments, target implicit conversions, , case objects in pattern matching...
  • objects can inherit classes or traits
  • an object has own type
  • objects can restrict access of members, companion class:

.

object x {   private[this] val z=1  }  class x {    import x._    //won't compile    println(z) } 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -