User3866881 posted
Hello kishorejetty:)
in C#,when we want to compare things with each other,we should use "==" instead of "=",So plz have a try like this:
var dids = CategoryTypeDetail.Where(ctd => ctd.DetailID==4).Select(ctd=>ctd.CategoryTypeDetailID)
CTDFields.Where(ctd=> dids.Contains(ctd.CategoryTypeDetailId))