This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Common function which is use to copy or make a clone of one object to another with datatype and value | |
public static void CopyProperties<TSelf, TSource>(this TSelf self, TSource source) | |
{ | |
try | |
{ | |
var sourceAllProperties = source.GetType().GetProperties(); | |
foreach (var sourceProperty in sourceAllProperties) | |
{ | |
var selfProperty = self.GetType().GetProperty(sourceProperty.Name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arrayCollection = [“ABC”, “DEF”, “HIJ”]; | |
$.each(arrayCollection, function(index, value){ | |
console.log(“index : “,index, “ value :”, value); | |
}); | |
$(arrayCollection).each(function(index, value){ | |
console.log(“index : “,index, “ value :”, value); | |
}); |
NewerOlder