|
Minus the enthusiasm, of course.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi,
I am trying to implement the code for Bitbliting in C#? which documents is help full?and if anyone implemented please do share here.
Thank you
Shree
|
|
|
|
|
A simple google search lead me to this CP article[^].
Please refrain from asking programming question on the lounge. This is not the appropriate forum for that.
Use ask a question[^] instead.
|
|
|
|
|
It's hardly a valid programming question, as the answer is, as so often, Google.
|
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Dolor indeed!
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
I think I laughed too hard on this.
|
|
|
|
|
Quote: dolor in reprehenderit in voluptate In fact!
He just wants to find pleasure!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Possibly see your dentist who's better trained in such matters.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
public static IEnumerable<IList<T>> Split<T>(this IEnumerable<T> collection,T delim,IEqualityComparer<T> equalityComparer = null)
public static IEnumerable<T> Join<T>(this IEnumerable<IList<T>> segments, IEnumerable<T> delim)
public static IEnumerable<T> Replace<T>(this IEnumerable<T> collection,T oldValue, IEnumerable<T> newValues, IEqualityComparer<T> equalityComparer = null)
Guess I could use LINQ but nah.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
A small consolation maybe, you can use aliases like this:
using MyDictionary = Dictionary<string, List<int>>;
|
|
|
|
|
You can't do like
using MyDict<TValue>=IDictionary<string,TValue>;
so it's of little help to me in this. I really wish .NET had something as flexible as C++'s typedef
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
If only because I have built this code up over years, I'm sticking with C# (there's a lot more than this)
I just think this one's funny because it's Split/Join/Replace like for System.String but with collections. I actually *needed* that.
Parser construction is weird.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Use the tools you've been given.
# define MyDict(x) System.Collections.Generic.IDictionary<string,x>
namespace Smartassery
{
public static partial class Supreme
{
public static void
Main
(
)
{
System.Console.WriteLine ( typeof ( MyDict(int) ) ) ;
return ;
}
}
}
cl.exe /C /EP /P MyDictTest.cs
csc.exe MyDictTest.i
|
|
|
|
|
now that's just hateful.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I fail to see the problem...
var myList = new List<SOMETHING>();
var aValue = GetSplitValue();
var result = myList.Join(otherlist).Split(aValue).ToList();
What's wrong with that?
|
|
|
|
|
the fact that i had to write those
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
ha.. no biggie!
err... I feel so sorry with you!
|
|
|
|
|
I feel quite weary as well, look what I had to write myself too!
Sigh, such burden...
public static IEnumerable<T> Enumerate<T>(this T item, Func<T, T> getNext)
{
while (item != null)
{
yield return item;
item = getNext(item);
}
}
|
|
|
|
|
If you have something serious to say, why not start a thread in the C# language forum.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
If not, the Lounge will do fine.
Seriously, I prefer these harmless rants over a lot of the other crap we get in the forums.
|
|
|
|
|
agree… upvoted
|
|
|
|
|
codewitch honey crisis wrote: Guess I could use LINQ but nah.
Anything serious you wanna inform us about?
Rules for the FOSW ![ ^]
if(!string.IsNullOrWhiteSpace(_signature))
{
MessageBox.Show("This is my signature: " + Environment.NewLine + _signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
not especially
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|