Omgili - forum search, search forums  
  

Discussions about explicit

Displaying 1 - 10 out of 121,965 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
If I have public class AImplementation:IAInterface { void IAInterface.AInterfaceMethod() { } void AnotherMethod() { ((IAInterface)this).AInterfaceMethod(); } } How to call AInterfaceMethod() from AnotherMethod() without explicit casting?
Started by on , 7 posts by 7 people.  
Public class....
You can't Can't you just remove the "IAInterface." from the method signature? public class AImplementation : IAInterface { public void AInterfaceMethod() { } void AnotherMethod() { this.AInterfaceMethod(); } } Tried this and it works.. .
Possible Duplicate: What does the explicit keyword in C++ mean? What is explicit constructor in C++ and what is its purpose?
Started by on , 4 posts by 4 people.  
But if you make the constructor explicit, this kind of implicit conversion can't happen: class....
FruitBasket fb = 5; // Legal.
)); // OK std::auto_ptr<int> r(0x58588); // Error Explicit constructors force your constructors); } // ...
Actually my question is all in the title. Anyway: I have a class and I use explicit constructor: .h class MyClass { public: explicit MyClass(const string& s): query(s) {} private: string query; } Is it obligatory or not to put explicit keyword in implementation...
Started by on , 3 posts by 3 people.  
My gcc says: test.cpp:6: error: only declarations of constructors can be 'explicit' for the following code: class foo { public: explicit foo(int); }; explicit....
The explicit keyword is only permitted in the header.
No, it is not.
Ask your Facebook Friends
Output: B->Hello! from Explicit. Shouldn't it be:? A->Hello! from Explicit. Why doesn't explicit cast (IHello)a call IHello.Hello() from class A? interface IHello { void Hello(); } class A : IHello { public virtual void Hello() { Console.WriteLine...
Started by on , 5 posts by 5 people.  
The output is exactly as expected.
Is located: If S contains a declaration of an explicit interface member implementation that matches to Hello() will call object B's explicit implementation of Hello.
What are the differences in implementing interfaces implicitly and explicitly in C#? When should you use implicit and when should you use explicit? Are there any pros and/or cons to one or the other?
Started by on , 8 posts by 8 people.  
Myclass.CopyTo //invalid with explicit ((....
Explicit implentation allows it to only be accessible when cast as the interface itself.
Explicit is when you define.
Implicit is when you define your interface via a member on your class .
That is the question. Is there anything you can do with c++ unions that you can't with c# Explicit structs?
Started by on , 3 posts by 3 people.  
C# explicit structs have some problems when it comes to references)" is not a compile-time constant (unlike C++ sizeof), it is impossible to use pointer-sized members in explicit, it is possible to use ....
The layout in C# with structs.
How to implement explicit interface implementation in VB.NET?
Started by on , 4 posts by 4 people.  
Explicit interface implementation in C# also allows.
Just one more word.
Through the interfaces.
Hi, Plese tell me Difference between explicit and implicit type cast.
Started by on , 8 posts by 8 people.  
An IList<int> ) With an explicit cast, either you are telling the compiler that you know more; float f = i; With an explicit primitive conversion, it is likely that the conversion could lose; // explicit (extracts text from....
What are the instances where you need to explicitly call a destructor?
Started by on , 4 posts by 4 people.  
F->~foo(); ::operator delete....
When you use placement-new is a common reason (the only reason?): struct foo {}; void* memoryLocation = ::operator new(sizeof(foo)); foo* f = new (memoryLocation) foo(); // note: not safe, doesn't handle exceptions // .. .
I have a dll that contains a templated class. Is there a way to export it without explicit specification?
Started by on , 4 posts by 4 people.  
This is the only way to give users to freedom to use any type with the template... .
That is, the library that is using the dll can instantiate the template .
Since the code for templates is usually in headers, you don't need to export the functions at all .
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
"explicit explicit explicit"    Explicit    explicit inner join    Explicit enum cast    explicit and implicit inner join    implicit inner join vs explicit    implicit and explicit premise    explicit INNER JOIN and implicit    filezilla client explicit ssl    sql implicit explicit join   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost