Questions tagged [explicit]

In C++ specifies constructors and conversion operators that don't allow implicit conversions or copy-initialization. In C# declares a user-defined type conversion operator that must be invoked with a cast. For MS SQL Server for-xml-EXPLICIT mode use the [for-xml-explicit] tag

405 questions
0
votes
2 answers

Overloading functions by return type in C#

I am currently studying C#, and someone told me that can you can actually overload a methods return type using the explicit keyword, but he never explained how. I google all over the place , and read some questions and answers on stackoverflow as…
David_D
  • 25
  • 1
  • 8
0
votes
3 answers

display item and inventory information for a user defined item ID

So my task like the title states is to display the item and inventory information from a user defined item ID. I have to write a single-row select statement that returns Item_desc and then display it as a header row. Assuming the user has entered an…
Jongu
  • 31
  • 7
0
votes
1 answer

Why does a explicit constructor expecting std::shared_ptr accept a nullptr?

The following code compiles fine with gcc 4.8.1 #include class Foo { public: explicit Foo(const std::shared_ptr& foo) { } }; int main() { Foo foo(nullptr); } Why is this possible? Shouldn't the explicit prevent the…
hllnll
  • 374
  • 1
  • 2
  • 8
0
votes
2 answers

How to refresh the current activity from the Base activity

Sorry, the title seems a bit unclear. I have Base_Activity class. In that class I have a menu that has a spinner with the list of languages to change the content of the application in different languages. I have three activities. I want to make it…
bShah
  • 309
  • 1
  • 6
  • 19
0
votes
1 answer

FOR XML EXPLICIT Parent ID not among open tags

I am trying to craft XML to return to BizTalk from a SQL Server stored procedure that will make it easy for me to debatch the files based on an Attribution_TIN number in our database. I need the data formatted in XML that follows this…
Ritley572
  • 299
  • 4
  • 15
0
votes
2 answers

using explicit with templates, C++

i have a question about explicit and templates: template class A { class A_Impl { T var; public: explicit A_Impl(T var1) : var(var1), version(1) { } A_Impl(const…
didinino
  • 93
  • 1
  • 8
0
votes
3 answers

initializer list: a constructor from the base class and a member function

So what I want to do is initialize my subclass's constructor with my base class's constructor. this is what my base class constructor looks like. Appointment::Appointment(string description, int month, int day, int year, int hour, int…
Randomkid
  • 23
  • 3
0
votes
1 answer

Is git rebase from current branch *exactly* the same as the explicit version from another branch?

I spose this is a basic question but in most posts I don't see people use rebase with an explicitly defined branch (to rebase) much so I'm just wondering if there's a reason? git checkout feature git rebase master VS explicit: git checkout…
sabgenton
  • 1,823
  • 1
  • 12
  • 20
0
votes
1 answer

Manually open and close connection with entity framework

I have been searching the web since yesterday but cannot find an example which may solve my issue. I am trying open and close the connection manually with the below code Using conn = New EntityConnection(entityBuilder.ToString) …
Anup
  • 115
  • 5
  • 15
0
votes
1 answer

C++ Templates. Can't use inherited function

Well this has been giving me grief... #include class InterfaceClass { public: void test() { std::cout<<"Hello there.\n"; } }; template class TemplateClass { public: T t; }; class TestClass:…
Ryan
  • 3
  • 2
0
votes
1 answer

C# Compiler Error on Returning Interface Implementation

I'm trying to understand why the code below does not compile. The error I get is: 'MyClass' does not implement interface member 'IFace.Deliver()'. 'MyClass.Deliver()' cannot implement 'IFace.Deliver()' because it does not have the matching return…
Tom Baxter
  • 2,110
  • 2
  • 19
  • 38
0
votes
1 answer

Android Explicit Intent for Result

I have two standalone applications. Application A and Application B. I want to start activity in application B from Application A and get the results back. I can call activity in Application B from A using Action But Cannot get back to Application A…
Shah
  • 661
  • 2
  • 9
  • 19
0
votes
4 answers

Query related to Explicit wait: wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(

package wait1; import org.openqa.selenium.By; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; public class Explicit { public…
user2000385
  • 1
  • 1
  • 1
  • 1
0
votes
1 answer

c# explicitly typed numbers using var

Hello and please forgive the noob question. I can for example EXPLICITLY define a variable using 'var' to be, for example, a DOUBLE type: var num = 5d; I know I know, I'm really obfuscating the fact that 'var' implies implicit! But really feel that…
Bill Roberts
  • 1,127
  • 18
  • 30
0
votes
1 answer

Creating explicit app id for iPhone app

How to create explicit app id for iPhone application that wants use some Store technologies? Do we need to do it in Portal or in XCode project settings? App Id has the format com.comanyName.productName. What should be the format for explicit App Id?
spd
  • 2,114
  • 1
  • 29
  • 54