This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IUmaClasse<T> | |
{ | |
public interface Usando<M> | |
{ | |
T FazAlgo<M>(); | |
} | |
} | |
public class ClassTeste : IUmaClasse<string>.Usando<bool> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace TestProject3 | |
{ | |
public interface IExecuteType<T> | |
{ | |
bool IsExecuted { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringUtils { | |
public static boolean isBlank(String str) { | |
int strLen; | |
if (str == null || (strLen = str.length()) == 0) { | |
return true; | |
} | |
for (int i = 0; i < strLen; i++) { | |
if ((Character.isWhitespace(str.charAt(i)) == false)) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn blank? [s] (every? #(Character/isWhitespace %) s)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Sample - Windows Form made in ClojureCLR | |
; Diullei Gomes | |
; [email protected] | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(System.Reflection.Assembly/LoadWithPartialName "System.Windows.Forms") | |
(import '(System.Windows.Forms MessageBox Form Button)) | |
(import '(System.Windows.Forms Application)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn blank? [s] (every? #(Char/IsWhiteSpace %) s)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defstruct person :first-name :last-name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def cliente-repository (ref #{})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defstruct cliente :codigo :nome) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(dosync (alter cliente-repository conj (struct cliente 100 "Diullei Gomes"))) |
OlderNewer