|
|
-
Vamshi Answered 2 Years ago through Quizzes
**•Address:** Address represents where? For ex: If we want to send a greeting card to a friend in the US . We need to specify the address on the envelope to whom we need to sent. Here the address applies the same . Where to send? WCF services must ...
|
-
Vamshi Answered 2 Years ago through Quizzes
XMl attribute always checks for open double quote to end so compiler cannot understand Value="<%#Eval(" for parsing. Since it has no meaning it will simply terminate and gives error as "Server tag not well formed ". XML always takes the first matchin...
|
-
Vamshi Answered 2 Years ago through Quizzes
If we have a string, and we expect it to always be an integer best practice is to use Int32.Parse(). If we are collecting input from a user, we can generally use Int32.TryParse(), since it allows more fine-grained control over the situation when the ...
|
-
Vamshi Answered 2 Years ago through Quizzes
The error is problem with Namespace. The defined Program class is in Math namespace, as the .net compiler aleway tries to reslove name to nearest possible match , the compiler checks Math namespace for the Math class. But in Math namespace there is no...
|
-
Vamshi Answered 2 Years ago through Quizzes
Thanks for the good question. Pradeep got it correct.
Yeap. Here internally The RowState remains unchanged, even though the data in DataTable will change. Hence the changes to child table not being sent to the database when the Update command on the ...
|
-
Vamshi Answered 2 Years ago through Quizzes
What is the result of this method call ?
**20 is the output**
Explain your answer
The expression in given question is equivalent to 10 + null ?? 20 . The + operator has higher precedence than the ?? operator, it is equivalent to (10 + null) ??...
|
-
Vamshi Answered 2 Years ago through Quizzes
When we unit test, we use abstract Repositories to abstract the data access code away from the rest of the application. From this perspective, we are only testing the consumers of the Repositories, not any concrete Repository at all. Such consumers shou...
|
-
Vamshi Answered 2 Years ago through Quizzes
Disabling viewstate will effect the triggering of events. View State concept is introduced to make the values of the controls persistant under postback implementation.
View state is stored in a statebag object in a hidden fiels. If you look at the view...
|
-
Vamshi Answered 2 Years ago through Quizzes
Enumertated types represents integer values.
Adding Flag attribute to enum will make act as bit field
[Flags]
enum Sizes : byte { None = 0, Small = 1, Medium = 2, Large = 4 }
Adding above code will work as expected....
|
-
Vamshi Answered 2 Years ago through Quizzes
Option2 would perform better due to
1. String Builder is faster compared to string. This is because string builder is mutable and each time a string object is created space is allotted for the new object. String builder class will be used to append...
|