fa
Feedback
.Net Interview Questions

.Net Interview Questions

رفتن به کانال در Telegram

.Net Interview Questions

نمایش بیشتر
کشور مشخص نشده استفناوری و برنامه‌ها40 773
1 794
مشترکین
+124 ساعت
+207 روز
+4930 روز

در حال بارگیری داده...

ابر برچسب‌ها
هیچ داده‌ای
مشکلی وجود دارد؟ لطفاً صفحه را تازه کنید یا با مدیر پشتیبانی ما تماس بگیرید.
اشارات ورودی و خروجی
---
---
---
---
---
---
جذب مشترکین
دسامبر '24
دسامبر '24
+27
در 0 کانال‌ها
نوامبر '24
+56
در 0 کانال‌ها
Get PRO
اکتبر '24
+36
در 0 کانال‌ها
Get PRO
سپتامبر '24
+65
در 0 کانال‌ها
Get PRO
اوت '24
+53
در 0 کانال‌ها
Get PRO
ژوئیه '24
+124
در 0 کانال‌ها
Get PRO
ژوئن '24
+99
در 0 کانال‌ها
Get PRO
مه '24
+137
در 0 کانال‌ها
Get PRO
آوریل '24
+106
در 0 کانال‌ها
Get PRO
مارس '24
+129
در 0 کانال‌ها
Get PRO
فوریه '24
+107
در 0 کانال‌ها
Get PRO
ژانویه '240
در 0 کانال‌ها
Get PRO
دسامبر '230
در 0 کانال‌ها
Get PRO
نوامبر '230
در 0 کانال‌ها
Get PRO
اکتبر '230
در 0 کانال‌ها
Get PRO
سپتامبر '23
+7
در 0 کانال‌ها
Get PRO
اوت '23
+93
در 0 کانال‌ها
Get PRO
ژوئیه '23
+54
در 0 کانال‌ها
Get PRO
ژوئن '23
+50
در 0 کانال‌ها
Get PRO
مه '23
+48
در 0 کانال‌ها
Get PRO
آوریل '23
+53
در 0 کانال‌ها
Get PRO
مارس '23
+58
در 0 کانال‌ها
Get PRO
فوریه '23
+48
در 0 کانال‌ها
Get PRO
ژانویه '23
+60
در 0 کانال‌ها
Get PRO
دسامبر '22
+54
در 0 کانال‌ها
Get PRO
نوامبر '22
+52
در 0 کانال‌ها
Get PRO
اکتبر '22
+51
در 0 کانال‌ها
Get PRO
سپتامبر '22
+1 411
در 0 کانال‌ها
تاریخ
رشد مشترکین
اشارات
کانال‌ها
14 دسامبر0
13 دسامبر0
12 دسامبر+5
11 دسامبر+3
10 دسامبر0
09 دسامبر+2
08 دسامبر+3
07 دسامبر+3
06 دسامبر+2
05 دسامبر+3
04 دسامبر+1
03 دسامبر+1
02 دسامبر+1
01 دسامبر+3
پست‌های کانال
The preferred way for serializing complex types in WCF is to use data contracts. Using Data Contracts provides us with the following advantages. 1. Using DataMember attribute, you can control which members of the class to serialize. 2. You can also control the order in which members are serialized using Order parameter of the DataMember attribute.. 3. You can also provide explicit Name to the serialized members using Name parameter of the DataMember attribute. 4. You can also specify if a member is required or optional using IsRequired parameter of the DataMember attribute. Consider the example below which uses Name, IsRequired and Order parameters of the DataMember attribute to serialize CustomerId property. By the way DataMember attribute can be used with either fields or properties. If you donot specify the order in which members are serialized, then by default alphabetical ordering is done by the DataContractSerializer.

2
🚩2️⃣6️⃣6️⃣ What is the preferred way for serializing complex types in WCF?
323
3
When we decorate a class with Serializable attribute, all the fields of the class are serialized regardless of the accessibility. We donot have control on what to serialize and what not to serialize. We also will not have any control over naming conventions or data types.
306
4
🚩2️⃣6️⃣5️⃣ What is the disadvantage of using Serializable attribute to serialize a complex type that is sent and received between clients and services in WCF?
266
5
The following are the different options available to serialize complex types that are exchanged between clients and services in WCF. These options have their own advantages and disadvanatages. Data contracts is thepreferred way to serialize complex types in WCF. 1. Serializable types - Us the Serializable attribute on the type that you want to serialize 2. Data contracts - Use DataContract attribute on the type and DataMember attribute on every member of the type, that you want to serialize. You can apply DataMember attribute either on a filed or a property. 3. Known types - Use Known types to enable polymorphic behavior in service contracts. 4. IXmlSerializable - IXmlSerializable types provide XSD schema to Web Services Description Language (WSDL) and metadata exchange (MEX).
253
6
🚩2️⃣6️⃣4️⃣ What are the different options available to serialize complex types that are sent and received between clients and services in WCF?
230
7
Normally, by default, when some exception occurs at a WCF service level, it will not be exposed as it is to the client. The reason is that the WCF exception is a CLR exception and it doesn't make sense to expose it outside of the CLR because it contains internal details of service code like stack trace. So, WCF handles and returns error details to the client using a Fault Contract. So, a fault contract is a contract that contains the details of possible exception(s) that might occur in service code
230
8
🚩2️⃣6️⃣3️⃣ What is a fault contract?
206
9
بدون متن...
1
10
MessageParameter attribute is used to control the parameter and returned object names from a service operation. Consider the example below. On the service side, the method parameter name in SaveCustomer([MessageParameter(Name = "Customer")] Customer cust) is cust. If we donot use MessageParameter attribute, then "cust" is what is exposed as parameter name to the client, which is not very proffesional. So we are using MessageParameter attribute to expose the method parameter name as Cutomer.
212
11
🚩2️⃣6️⃣2️⃣ What is the purpose of MessageParameter attribute in WCF?
206
12
Yes, a ServiceContract attribute can be applied either to a class or an interface, but defining service contracts using interfaces rather classes has the following benifits. 1. Defining service contracts using interfaces, removes coupling to service implementation. Later the implementation can be changed at will without affecting the clients. 2. Defining service contracts using interfaces, also allows a service to implement more than 1 contract.
215
13
🚩2️⃣6️⃣1️⃣ Can you apply service contract attribute to a class rather than an interface in WCF?
207
14
2. Operation Contract - All methods in a service contract should have OperationContract attribute. You can also provide explicit Name, Action and ReplyAction as shown in the example below.
211
15
1. Service Contract - An interface that exposes the service operations is usually decorated with the service contract attribute. Always provide meaningful Namespace and Name to a service contract as shown in theexample below.
214
16
🚩2️⃣6️⃣0️⃣ Define Service Contracts and Operation Contracts in WCF?
219
17
Service Utility (svcutil.exe) can be used by the clients to generate the proxy and configuration file. For the client to be able to generate proxies, the service should enable metadata exchange.
220
18
🚩2️⃣5️⃣9️⃣ What is the tool that a client application can use to generate the proxy for a WCF service?
220
19
WSDL stands for Web Service Description Language. The WCF service exposes the WSDL document for the clients, to generate proxies and the configuration file. The WSDL file provides the following information for the consumers of the WCF service. Provides the following points. 1. The service contract and operations available. 2. All the end points exposed by the WCF service. 3. Messages and types that can be exchanged between the client and the WCF service. 4. WSDL also provides any information about the policies used.
253
20
🚩2️⃣5️⃣8️⃣ What is the role of WSDL in WCF? OR What is WSDL?
250