Questions

C#

C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java.

Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Microsoft Visual Studio Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web apps, web services and mobile apps. Learn More, ASP.NET MVC The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly. Learn More, Visual Studio 2019 (Community Edition) A fully-featured, extensible, free IDE for creating modern applications for Android, iOS, Windows, as well as web applications and cloud services. Learn More,

Question:NuGet Package restore failed/build failed for my project on new visual studio instance

Description:I have just installed the latest visual studio 2019 (Community Edition) , just pull my project on a new machine which is working fine on another machine but now I am getting following error on some of the nuget packages.(I have checked that these packages are not downloaded) Severity Code Description Project File Line Suppression State Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105

View Details

Posted by: Khalid Abbas | Posted on: Jun 15, 2021


Related Tags:
Asp.Net It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. Learn More, C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, ASP.NET MVC The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly. Learn More,

Question:How to get the time difference between utc time and local time in C#?

Description:I have .net base website which currently have server time zone set to GMT+5, I need to extract that 5 from it dynamically so that once I change the time zone of the server or deploy the same site on another sever with different time zone, I should be able to extract that time difference in that case.

View Details

Posted by: Umer khan | Posted on: Sep 11, 2020


Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Lambda expressions A lambda expression is a convenient way of defining an anonymous (unnamed) function that can be passed around as a variable or as a parameter to a method call. Many LINQ methods take a function (called a delegate) as a parameter. ... The => operator is called the "lambda operator". Learn More,

Question:How to convert list of lists to single list in c# using lambda expression?

Description:I have records coming from database where each item can have multiple TagIds(List<string>) assigned to it. I have combined the lists but currently it has become a list of lists as shown below, List<List<string>> listOfLists=databaseQueriedItems; but I need the items in one list like following one(i.e I want to flatten the hierarchy) List<string> singleListOfStrings;

View Details

Posted by: Umer khan | Posted on: Aug 29, 2020


Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Enum Flags Attribute The idea of Enum Flags is to take an enumeration variable and allow it hold multiple values. It should be used whenever the enum represents a collection of flags, rather than representing a single value.You create a bit flags enum by applying the System. Learn More,

Question:How to check if the flags enum value has/contains other flags enum values in c#?

Description:For example I have Following flags enum and I have stored a number 7 in the database now I have to check if 7 contains the requested number let say 3(which is for OptionOne and OptionTwo) it should return true, in this way I have to compare a single int value with a single int value for the following flag enum. [Flags] public enum MyFlagsEnum { None = 0, OptionOne = 1, OptionTwo = 2, OptionThree = 4, }

View Details

Posted by: Junaid Aziz | Posted on: Aug 21, 2020


Related Tags:
Asp.Net It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. Learn More, C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, MongoDB MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. Learn More, .NET Core . NET Core is a free and open-source, managed computer software framework for Windows, Linux, and macOS operating systems. It is a cross-platform successor to . NET Framework. The project is primarily developed by Microsoft and released under the MIT License. Learn More,

Question:Need to create a .net core web api using MongoDB as backend storage database?

Description:I am new to .net core and mongodb as well. I have prior experience of using .net and mssql can anyone suggest me a complete working example, so that I can get an idea about the architecture of such asp.net core api.

View Details

Posted by: Umer khan | Posted on: May 22, 2020


Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Visual Studio Tools for Office (VSTO) Visual Studio Tools for Office is a set of development tools available in the form of a Visual Studio add-in and a runtime that allows Microsoft Office 2003 and later versions of Office applications to host the .NET Framework Common Language Runtime to expose their functionality via .NET. Learn More, Microsoft Excel Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications. Learn More, Add-in An add-in is a software program that expands the capabilities of bigger programs. It is a term commonly used by Microsoft and other platforms which have additional functions that can be added to primary programs. An add-in has specific but limited features that require only minimal memory resources. Learn More,

Question:how to get the last column used/last column that has some data in a excel file programmatically by using C#?

Description:I need to iterate through a single row where I don’t know the end range as I have a dynamically generated excel file which might have different number of columns used every time. I am using following code, taken from reference code List<string> myValue = new List<string>(); //unknown end Range //need to get the Last data filled column or Last Column used in the following line string endRange="D1"; foreach (Range row in sheet.Cells.Rows.Range["A1", endRange]) { Range cell = (Range)row.Cells[1, 1]; if (cell.Value2 != null) { myValue.Add(Convert.ToString(cell.Value2)); } }

View Details

Posted by: Peter Andre | Posted on: Jan 22, 2020


Related Tags:
Asp.Net It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. Learn More, C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, ASP.NET MVC The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly. Learn More, Sitemap A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Search engines like Google read this file to more intelligently crawl your site. Learn More,

Question:How to dynamically generate sitemap xml for an asp.net mvc website?

Description:I have a website developed using asp.net mvc (c#) which contains some static pages and also some dynamic pages i.e where the content is fetched from database and is dynamically increasing as well, So I need to build such a sitemap for which I need to code for once and it take care of the future items that needs to be included in the sitemap.

View Details

Posted by: Khalid Abbas | Posted on: Jan 21, 2020


Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Visual Studio Tools for Office (VSTO) Visual Studio Tools for Office is a set of development tools available in the form of a Visual Studio add-in and a runtime that allows Microsoft Office 2003 and later versions of Office applications to host the .NET Framework Common Language Runtime to expose their functionality via .NET. Learn More, Microsoft PowerPoint Microsoft PowerPoint is a presentation program, created by Robert Gaskins and Dennis Austin at a software company named Forethought, Inc. It was released on April 20, 1987, initially for Macintosh computers only. Microsoft acquired PowerPoint for $14 million three months after it appeared. Learn More, Add-in An add-in is a software program that expands the capabilities of bigger programs. It is a term commonly used by Microsoft and other platforms which have additional functions that can be added to primary programs. An add-in has specific but limited features that require only minimal memory resources. Learn More,

Question:How to get the list of all available powerpoint control’s ids?

Description:I need all available powerpoint (currently i am using office 2016) control ids as I have to utilize them for development purpose. it will be good if i can have ids for older versions of powerpoint which might be useful to avoid any compatibility issues.

View Details

Posted by: Samantha Jones | Posted on: Jan 21, 2020


Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Visual Studio Tools for Office (VSTO) Visual Studio Tools for Office is a set of development tools available in the form of a Visual Studio add-in and a runtime that allows Microsoft Office 2003 and later versions of Office applications to host the .NET Framework Common Language Runtime to expose their functionality via .NET. Learn More, Microsoft Excel Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications. Learn More,

Question:Iterate through a single specified row of an excel sheet using vsto in C# code?

Description:I have a excel sheet and I need to create a list containing all the values of the specified row or specified range!

View Details

Posted by: Samantha Jones | Posted on: Jan 15, 2020


Related Tags:
C# C# (pronounced "C-sharp") is an object-oriented programming language from Microsoft that aims to combine the computing power of C++ with the programming ease of Visual Basic. C# is based on C++ and contains features similar to those of Java. Learn More, Visual Studio Tools for Office (VSTO) Visual Studio Tools for Office is a set of development tools available in the form of a Visual Studio add-in and a runtime that allows Microsoft Office 2003 and later versions of Office applications to host the .NET Framework Common Language Runtime to expose their functionality via .NET. Learn More, Microsoft PowerPoint Microsoft PowerPoint is a presentation program, created by Robert Gaskins and Dennis Austin at a software company named Forethought, Inc. It was released on April 20, 1987, initially for Macintosh computers only. Microsoft acquired PowerPoint for $14 million three months after it appeared. Learn More, Microsoft Excel Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications. Learn More, Add-in An add-in is a software program that expands the capabilities of bigger programs. It is a term commonly used by Microsoft and other platforms which have additional functions that can be added to primary programs. An add-in has specific but limited features that require only minimal memory resources. Learn More,

Question:How to update Legend / series text of powerpoint chart using VSTO in C#?

Description:I am dynamically adding series items but the series/Legend items always showing text as series1,series2 and so on… but let say I want to update them as my series 1, my series 2, and so on. I am clueless as there is very less information available regarding the topic.

View Details

Posted by: Samantha Jones | Posted on: Jan 10, 2020


1 2 3 4 5