Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Other Languages
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Languages
can i add one more source for this
spars anu
Greenhorn
Posts: 11
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
namespace FullTilt.Tools.Services.MiddlewareServices.ServiceImplementation.Translators { internal class NoteTranslator : EntityTranslator<MiddlewareNote, EtcNote> { public override bool CanTranslate(System.Type targetType, System.Type sourceType) { return targetType == typeof(EtcNote) && (sourceType.IsSubclassOf(typeof(Note)) || sourceType == typeof(Note)); } public override EtcNote Translate(IEntityTranslatorService service, MiddlewareNote source) { var etcNote = new EtcNote(); if (source is AuditNote) { var auditNote = source as AuditNote; etcNote.NoteType = service.Translate<NoteType>(auditNote.Type); } if (source is AdminNote) { etcNote.NoteType = NoteType.ADMIN; } if (source is AlertNote) { etcNote.NoteType = NoteType.ALERT; } if (source is PlayerNote) { etcNote.NoteType = NoteType.PLAYER_NOTE; } if (source is SystemNote) { etcNote.NoteType = NoteType.SYSTEM; } etcNote.Text = source.Text; return etcNote; } } }
[NK: Please
UseCodeTags
]
Joachim Rohde
Ranch Hand
Posts: 433
I like...
posted 12 years ago
2
Number of slices to send:
Optional 'thank-you' note:
Send
Yes.
Those are the largest trousers in the world! Especially when next to this ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Swing JCombobox and JTable issue
can you explain
Audio format conversion problems
Can you please let me know what does this method do
js references/garbage collection/other questions
More...